step by step journey to migration exchange 2010 sp3 to ......lab summary i have setup this lab on...
TRANSCRIPT
Step by Step Journey to Migration Exchange 2010 sp3
to Exchange Server 2016 Part-III
Hussain Shakir
LinkedIn: https://www.linkedin.com/in/mrhussain
Twitter: https://twitter.com/hshakir_ms
Blog: http://mstechguru.blogspot.com/
Table of Contents About Author ............................................................................................................................... 3
LAB Summary .............................................................................................................................. 4
VMs IP & Names .......................................................................................................................... 4
Windows Server 2008 Properties ............................................................................................... 5
Adding Server Roles Required for DC ..................................................................................... 5
DC Promo Installation ................................................................................................................. 9
Configuring Revers Lookup Zone ........................................................................................... 18
Launch NSLOOK to verify name resolution.......................................................................... 24
Summary of Part-II .................................................................................................................... 26
Exchange 2010 VM Properties .................................................................................................. 26
Installing prerequisites of Exchange 2010 .............................................................................. 27
Preparing Active Directory for Exchange 2010 ..................................................................... 30
PowerShell Script for Bulk Users ............................................................................................. 39
Bulk Mailbox Creation in Exchange 2010 ............................................................................... 42
Email Testing OWA Send/Receive ......................................................................................... 43
Exchange 2010 Installation Completed ................................................................................... 44
Installation of Windows Server 2016 as Domain................................................................... 45
Adding Roles for Active Directory .......................................................................................... 46
Nslookup Status ......................................................................................................................... 58
Installing Rollup update 13 on Exchange 2010 SP3 .............................................................. 58
Transferring of FSMO Roles from Domain2008 to Domain2016 ........................................ 62
About Author
I am IT Consultant with over 13 years of extensive experience working with Microsoft
Technologies AD, Exchange, O365, Windows Azure, PowerShell, Skype for Business,
SQL, SharePoint and Microsoft public clouds, and providing solutions to different local
& international Enterprise customers.
I have been involved in Infrastructure Designing and Implementation, Virtualization,
and Disaster Recovery. Extensive hands-on experience in Core Server Infrastructure,
Cloud Computing, Virtualization/ Management and Information Protection. Analysis
and Support of Microsoft Windows Server based Client / Server network, AD,
Messaging, Skype for Business, SQL Always ON, Virtualization and System Center
Infrastructure Products. Shakir has various industry certifications: MCT, MCTS,
MCITP, MCSA, MCSE: Messaging, MCPS, MCSE: Cloud Platform and Infrastructure
and also providing trainings on Microsoft Based Technologies.
LAB Summary
I have setup this LAB on VMWare work station 12.0. The whole lab is running on ThinkPad
W541 with 32 GB of RAM and Intel(R) i7-4930MX CPU @ 3.00 GHZ, with 1 TB SSD
Samsung.
VMs IP & Names
Sr.
No
VM Name IP Address Subnet Mask Gateway DNS
1 DC2008 192.168.244.151 255.255.255.0 192.168.244.2 192.168.244.151
2 Exchange2010 192.168.244.152 255.255.255.0 192.168.244.2 192.168.244.151
3 DC2016 192.168.244.153 255.255.255.0 192.168.244.2 192.168.244.151
4 Exchange2016 192.168.244.154 255.255.255.0 192.168.244.2 192.168.244.153
I am going to start the migration process from scratch because I don’t have pre-setup for this
migration so I will start the lab from building a Domain Controller in Windows Server 2008 R2
Standard, on the same OS I will install Exchange Server 2010 SP3. In the second part of the
Guide I will further install Domain Controller on Windows Server 2016 Standard Edition, on the
same OS I will install Exchange Server 2016.
You can simply follow the steps for both who have already running this environment or for those
who wanted to setup the same environment before doing migration on actual site.
Let’s have a look on first Domain Controller properties and start building Domain on Windows
Server 2008.
Note: - I am using very less memory on each VM because I am using SSD drive in my Laptop
which has high IOPS (Input/output operations per second.
Windows Server 2008 Properties
Adding Server Roles Required for DC
Select Active Directory Domain Services
A popup windows will appear for adding required features.
Click Next to continue
Click on Install
Installation Progress
After Successful Installation Click Close
DC Promo Installation
From Run Type Dcpromo & Hit Enter
A Small Windows popup for Checking AD Services
Select Advance option and Click on Next to continue
Click on Next and Continue
Click on Create a new domain in a new forest and Click on Next
You can see the progress windows for verifying NetBIOS name
Click Next with default NetBIOS name
Select Forest Functional Level as per your environment
Select DNS Server option and Click on Next
Click YES to continue
Click Next with default options
Provide password for AD restoration
Read the configurations and Click on Next
Progress windows of active directory installation wizard
Active Direction installation is successfully done at this point, server will take a reboot and give you logon screen with domain name.
Logon to your Domain with administrative credentials
From Administrative Tools, you can see the Active Directory components are installed
Correct your Preferred DNS Server
Configuring Revers Lookup Zone
Right click on Reverse Lookup Zone and click on New zone
Click Next to continue
Click Next with default options selected
Select the option as per your environment
Select IPv4 for Revers Lookup Zone
Provide your Network ID
Select first option and click on Next
Click Finish
Click on New Pointer (PTR)
Click Browse to select A record
Select A record of your DC
Click OK
Launch NSLOOK to verify name resolution
DNS Results with NSLOOKUP
As you can see the results of DNS is OK. Name resolution is successfully from name to IP and IP to name. Let's start preparing & installing Exchange Server 2010 SP3 in Part-II of this series.
Step by Step Journey to Migration Exchange 2010 sp3
to Exchange Server 2016 Part-II
Summary of Part-II
I will continue from Part-I of migration, in first part we have just configured domain
environment for installation of Exchange 2010 SP3, in this part we will install all
prerequisites of Exchange 2010 SP3 and itself Exchange 2010 setup.
VMs related configuration will remain same as described in part-I of our migration
guide. I will join the 2nd VM with Domain 2008 and login with Domain Admin
credentials to perform all tasks for the installation of Microsoft Exchange 2010 SP3.
Exchange 2010 VM Properties
I am using very less amount of memory in lab environment and joined the VM to the
existing domain controller which on Windows Server 2008.
Network IP Setting for Exchange 2010 VM
As you can see I am using preffered DNS as first Domain Controller.
Installing prerequisites of Exchange 2010
Install Microsoft Filter Pack 2.0
Accept the Agreement and Clikc on Next
You will see the successful message screen Click to continue
On the Start Menu, navigate to All Programs, then Accessories, then Windows PowerShell. Open an elevated Windows PowerShell console, and run the following command:
Import-Module ServerManager Use the Add-WindowsFeature cmdlet to install the necessary operating system
components: a. For a server that will have the typical installation of Client Access, Hub
Transport, and the Mailbox role:
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart
This will install all required features for Exchange 2010 installation. On servers that will
have the Client Access Server role installed, after the system has restarted.
Log on as an administrator, open an elevated Windows PowerShell console, and configure the Net.Tcp Port Sharing Service for Automatic startup by running the following command: Set-Service NetTcpPortSharing -StartupType Automatic
After installing RSAT-ADDS tool, restart the server.
Preparing Active Directory for Exchange 2010
Open Command Prompt. Type following command to prepare active directory for
installing Exchange Server. Mount Exchange 2010 SP3 DVD/ISO image into your VM.
D:\>setup /prepareschema
The second step is to prepare Active Directory for Exchange installation. Type your
organization name in Organization Name switch. Hit the following command in
command prompt.
D:\> setup /prepareAD /OrganizationName:MSTECHGuru
Now to prepare this domain for Exchange server installation, hit the following commands in command prompt.
D:\> setup /PrepareDomain
Now, we will install typical Exchange server that includes, Hub Transport, Client
Access and Mailbox. These roles are typical if you are installing only one Exchange
server for small environment.
Before stating the installation of Microsoft Exchange 2010 SP3 don’t forget to give a
reboot to your VM.
Exchange 2010 SP3 Installation
Now, we will install typical Exchange server that includes, Hub Transport, Client
Access and Mailbox. These roles are typical if you are installing only one Exchange
server for small environment. Because this is the Lab environment so we will use all
roles in one server.
Mount your Exchange 2010 SP3 DVD into your Exchange VM and double click on it or
get inside and click on Setup file.
Click on Install Microsoft Exchange
Click Next
Click on Next
Click Next
Select Automatically install option & Click Next
Select No and Click Next to continue
You can put the domain name as per your environment & Clieck Next
Select I don’t want to join & Click Next
Click Finish & check Finalize this installation using the Exchange Management console
Exchange Installation Completed Successfully
Give a reboot to your system.
Bulk User Creation in Active Directory
At this point we have successfully installed Microsoft Exchange 2010 SP3. Now we will
move for the next step. What we will do in the next step: -
• Bulk user’s creation in Active Directory of Windows Server 2008 with Script.
• Bulk mailbox creation in Exchange 2010 PowerShell
• Access Exchange 2010 OWA and check email send/receive with different users.
Let's create some test Users in AD and their respective mailboxes in Exchange. I am going to use a CSV file to create bulk users in Active Directory and we will use one PowerShell script to execute this CSV file. You can put necessary entries in CSV file. URL to download the script files.
https://gallery.technet.microsoft.com/PowerShell-Bulk-Create-0927c0c0
PowerShell Script for Bulk Users
You can copy this code into a notepad & save it as .PS1 file. ########################################################### Import-Module ActiveDirectory $path = Split-Path -parent $MyInvocation.MyCommand.Definition $newpath = $path + "\import_users.csv" # Define variables $log = $path + "\created_ActiveDirectory_users.log" $date = Get-Date $i = 0 Function createActiveDirectoryUsers { "Created the following Active Directory users (on " + $date + "): " | Out-File $log -append "--------------------------------------------" | Out-File $log -append Import-CSV $newpath | ForEach-Object { $samAccount = $_.SamAccountName Try { $exists = Get-ADUser -LDAPFilter "(sAMAccountName=$samAccount)" }
Catch { } If(!$exists) { $i++ # Set all variables according to the table names in the Excel # sheet / import CSV. The names can differ in every project, but # if the names change, make sure to change it below as well. $setpass = ConvertTo-SecureString -AsPlainText $_.Password -force New-ADUser -Name $_.DisplayName -SamAccountName $_.SamAccountName -GivenName $_.GivenName -Initials $_.Initials ` -Surname $_.SN -DisplayName $_.DisplayName -Office $_.OfficeName ` -Description $_.Description -EmailAddress $_.eMail ` -StreetAddress $_.StreetAddress -City $_.L ` -PostalCode $_.PostalCode -Country $_.CO -UserPrincipalName $_.UPN ` -Company $_.Company -Department $_.Department -EmployeeID $_.ID ` -OfficePhone $_.Phone -AccountPassword $setpass -Enabled $true -Path $_.OU $output = $i.ToString() + ") Name: " + $_.CN + " sAMAccountName: " $output += $sam + " Pass: " + $_.Password $output | Out-File $log -append } Else { "SKIPPED - USER ALREADY EXISTS OR ERROR: " + $_.CN | Out-File $log -append } } "----------------------------------------" + "`n" | Out-File $log -append } # Run function createActiveDirectoryUsers #End Script Copy both file in C:\ of your DC and go to PowerShell to execute .PS1 file.
CSV file and PS1 file status C drive of your DC and run .\bulk_create_users.ps1
Now let's go to Active Directory Users and Computer to see newly created users.
Here we have successfully created 13 users in Active Directory. Let' s Go to Exchange 2010 SP3 to create mailboxes for these 13 users.
Bulk Mailbox Creation in Exchange 2010
I am using here PowerShell to create bulk mailboxes from this OU .
Get-User -OrganizationalUnit "OU=MigrationUsers,DC=mstechguru,DC=Com"
|Enable-Mailbox -Database "Users4Migration"
I have created one Database named Users4Migraiton so that we can create mailboxes into this database.
Let's see the results
We have successfully created mailboxes from Active Directory Users. Let's test one user
from OWA mail send/receive to other users.
Email Testing OWA Send/Receive
You can see I access Exchange 2010 SP3 with Server Name from OWA and login with
User1 we created above in AD & Exchange.
User1 is logged in from OWA and send one test email to all other users. Let's check test
mail on another user.
Exchange 2010 Installation Completed
We have successfully received email from User1. Till here we have completed our
Migration Lab part I, and part II we will add one additional domain controller of
Windows Server 2016 Data Center Edition and also Add one Exchange Server 2016 on
Windows Server 2016 in the same AD domain so that we can start our migration from
Exchange 2010 SP3 to Exchange 2016.
In next lab which is Part-III, I will also do migration FSMO roles from Windows Server
2008 Active Directory Domain Controller to new Windows Server 2016 Active Directory
Domain Controller so that I can later demote Windows 2008 Domain with Exchange
2010.
This is time to add Windows Server 2016 Additional Domain Controller
LAB Part-III
Installation of Windows Server 2016 as Domain
Windows Server 2016 properties for additional domain controller.
IP Addressing of ADC 2016
Here 192.168.244.151 is our Domain Controller running Windows Server 2008 R2 You can check name resolution and ping to your 2008 DC.
Adding Roles for Active Directory
Go to Server manager and install ADDS roles, Click Add roles and features
Click Next to continue
Click Next
Click Next
Click Next to continue
Select Active Directory Domain Services and Click Next
Click Next to continue
Click Next
Click Next
Click Close and give a reboot to your VM
Domain2016 Installation After reboot in Server Manager click on Promote this server to a domain controller
Click on first option click on select and provide administrative credentails, your domain name will appear select it and click on OK
Click Next to continue
Select first two option, provide password & Click Next
Click Next
DC2008 will automatically be selected Click Next
Click Next with default options
Click Next
Review the configuration & Click Next
Click Install to begin the Domain2016 installation
After installation system will automatically restart, after restart you will see the logon screen
DNS Setting Status at Domain2016 You can check the DNS status inside of Domain2016 everything is replicated from Domain2008.
Active Directory Status You can see that all user’s and other setting are replicated from Domain2008 to Domain 2016
Nslookup Status
You need to check the Nslookup status for name resolution between Domain2008 to Domain2016 with names & IPs.
Installing Rollup update 13 on Exchange 2010 SP3
Check the current status of Exchange 2010 version Get-ExchangeServer | Format-List Name, Edition, AdminDisplayVersion
The current installed version is 14.3
Download Rollup update from
http://www.techrid.com/?s=Exchange+Server+Build+Number&submit=
Start installing the setup
Click Continue
Accept Agreement & Click Next
Click Next
Installation status of Rollup 13
Click Finish
Give a restart to your Exchange 2010 Server.
Transferring of FSMO Roles from Domain2008 to Domain2016
At this point we have added Domain2016 with Domain2008 environment, now we will
go for the migration of FSMO roles from Windows Active Directory Domain 2008 to
Windows Active Directory Domain 2016.
Let's check current status of FSMO roles. I have already added ADC of Windows
Server 2016 in Windows Server 2008 R2 Domain environment.
Let's logon to Windows Server 2016 ADC and check FSMO and domain mode
Current domain and forest functional level of the domain is windows server 2008 R2
So, let’s start with the migrate process
Let’s check the current status & association of FSMO roles with which Domain
Controller.
1. 1. Click Start, click Run, type dsa.msc, and then click OK.
2. Right-click the selected Domain Object in the top left pane, and then click Operations Masters.
3. Click the PDC tab to view the server holding the PDC master role.
4. Click the Infrastructure tab to view the server holding the Infrastructure master role.
5. Click the RID Pool tab to view the server holding the RID master role.
In our example, the Windows Server 2008 R2 AD server holds all 5 FSMO roles. To
transfer FSMO toles, execute the following command on Windows Server 2016 ADC
PowerShell
Move-ADDirectoryServerOperationMasterRole -Identity DC2016 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster
Now let's verify that roles are transferred
Let's check Schema Master role Go to the PowerShell of Windows Server 2016 DC and type the following command
Type “regsvr32 schmmgmt.dll”, and then click OK. A message should be displayed stating that the registration was successful
On the Console menu, click Add/Remove Snap-in
Select Active Directory Schema and Add Click OK
Right click on Active Directory snap & click on operation master
You can see that schema master role also transferred to Domain2016.
Give a restart to your Server 2016 Domain Controller We have successfully transfer FSMO roles from Windows Server 2008 R2 to Windows Server 2016 Domain Controller.
This is time to install Exchange 2016 into this environment At this point we have updated Exchange 2010 SP3 to Rollup 13 and also migrate FSMO
roles from windows 2008 domain controller to windows 2016 domain controller.
In the last part of our lab we will Install Exchange 2016 in our environment and do
some test mailboxes migration from Exchange 2010 to Exchange 2016 in co-existence
model.