Transcript
Page 1: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Step by Step Journey to Migration Exchange 2010 sp3

to Exchange Server 2016 Part-II

Hussain Shakir

LinkedIn: https://www.linkedin.com/in/mrhussain

Twitter: https://twitter.com/hshakir_ms

Blog: http://mstechguru.blogspot.com/

Page 2: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 3: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 4: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 5: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Windows Server 2008 Properties

Adding Server Roles Required for DC

Page 6: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select Active Directory Domain Services

A popup windows will appear for adding required features.

Page 7: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Next to continue

Click on Install

Page 8: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Installation Progress

After Successful Installation Click Close

Page 9: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

DC Promo Installation

From Run Type Dcpromo & Hit Enter

A Small Windows popup for Checking AD Services

Page 10: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select Advance option and Click on Next to continue

Click on Next and Continue

Page 11: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click on Create a new domain in a new forest and Click on Next

You can see the progress windows for verifying NetBIOS name

Page 12: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Next with default NetBIOS name

Select Forest Functional Level as per your environment

Page 13: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select DNS Server option and Click on Next

Page 14: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click YES to continue

Click Next with default options

Provide password for AD restoration

Page 15: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Read the configurations and Click on Next

Page 16: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 17: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Logon to your Domain with administrative credentials

From Administrative Tools, you can see the Active Directory components are installed

Page 18: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Correct your Preferred DNS Server

Configuring Revers Lookup Zone

Right click on Reverse Lookup Zone and click on New zone

Page 19: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Next to continue

Click Next with default options selected

Page 20: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select the option as per your environment

Select IPv4 for Revers Lookup Zone

Page 21: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Provide your Network ID

Select first option and click on Next

Page 22: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Finish

Click on New Pointer (PTR)

Page 23: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Browse to select A record

Select A record of your DC

Page 24: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click OK

Launch NSLOOK to verify name resolution

Page 25: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 26: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 27: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 28: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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:

Page 29: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 30: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 31: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

D:\> setup /prepareAD /OrganizationName:MSTECHGuru

Now to prepare this domain for Exchange server installation, hit the following commands in command prompt.

Page 32: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 33: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 34: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Next

Click on Next

Page 35: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Click Next

Select Automatically install option & Click Next

Page 36: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select No and Click Next to continue

You can put the domain name as per your environment & Clieck Next

Page 37: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

Select I don’t want to join & Click Next

Click Finish & check Finalize this installation using the Exchange Management console

Page 38: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 39: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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)" }

Page 40: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 41: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 42: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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

Page 43: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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.

Page 44: Step by Step Journey to Migration Exchange 2010 sp3 to ... · Step by Step Journey to Migration Exchange 2010 sp3 ... Step by Step Journey to Migration Exchange 2010 sp3 to Exchange

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 Part-III, I will also 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.


Top Related