Article Number: 000135444


Complete guide to a migration of a Windows Server 2008 R2 domain controller to Windows Server 2012 R2

Summary: This article provides details for completing a migration of Windows Server 2008 R2 to Windows Server 2012 R2.

Article Content


Symptoms

This article is designed to provide a step by step walkthrough of the migration of a server running Windows Server 2008 R2 with the Active Directory Domain Services (ADDS) role installed and acting as a domain controller to as server running Windows Server 2012 R2. The migration includes migrating the Active Directory (AD) environment, Domain Naming System (DNS) and Dynamic Host Configuration Protocol (DHCP). The migration is designed to migrate everything with zero downtime in the environment allowing clients to continue to operate uninterrupted. The roles will be added and configured on to the server running Windows Server 2012 R2. The goal is to retire the server running Windows Server 2008 R2.


The current environment is configured as follows.

Hardware - Dell PowerEdge 1950
Operating System - Windows Server 2008 R2
Computer Name - W08R2-DC
Roles - ADDS, DNS, DHCP
IP Address - 192.168.0.1
Domain - domain.local
DHCP Scope - Client-Scope

Hardware - Dell PowerEdge R820
Operating System - Windows Server 2012 R2
Computer Name - W12R2-DC
IP Address - 192.168.0.2 

Note: This article assumes the AD environment is healthy. An unhealthy AD environment will result in an unsuccessful migration. It may appear the migration completed successfully, but short and long term problems will arise which may lead to completely reinstalling ADDS and rebuilding the AD infrastructure.

This document can be used as a reference for performing a migration in a customer environment. Simply substitute the following information throughout the document.


W08R2-DC = customers' existing domain controller computer name
W08R2-DC IP address =  customers' existing domain controller IP address
W08R2-DC DHCP scope = customers' existing DHCP scope
W12R2-DC = customers' new computer name
W12R2-DC IP address =  customers' new server IP address
domain.local = customers' forest/domain name
 

Solution:

1. Prepare the existing AD environment for the migration to the new server by upgrading the schema using adprep.exe. Log on to W08R2-DC as domain Administrator, open elevated command prompt and perform the following steps.  

Note: This section isn't necessary with Windows Server 2012 or Windows Server 2012 R2. The AD schema is updated during the promotion of the new server to a domain controller. It is here for informational purposes only.

      a. Press the Windows Logo+R, type runas  /user:administrator@domain.local where domain.local is replaced by the name of the Active Directory domain and press Enter.

      b. Enter the Administrator account password when prompted and press Enter.

     c. Type d:\support\adprep\adprep.exe /forestprep and press Enter. 

Note: The drive letter d: in the above command is the DVD drive on the Dell PowerEdge 1950 and contains the Windows Server 2012 R2 DVD.

     d. Type C to confirm the to upgrade the schema to version 69, Windows Server 2012 R2, and press Enter.  

     SLN290322_en_US__11395757764220.migration adprep

     SLN290322_en_US__21395757787330.migration adprep complete 

      
2. Install ADDS on W12R2-DC. 

     a. Open Server Manager by pressing Windows Logo+R, type servermanager.exe and press Enter. The same task can be accomplished by pressing Windows Logo and selecting Server Manager on the left side of the screen. 

     SLN290322_en_US__31395695378830.migrationservermanager


     b. Click Add roles and features in the Dashboard under Configure this local server

     c. Click Next on Before You Begin

     SLN290322_en_US__41395695660334.migrationadds1


     d. Select Role-based or feature-based installation for Installation Type and click Next

     SLN290322_en_US__51395695726381.migrationadds2


     e. Select W12R2-DC on the Server Selection page and click Next.

     SLN290322_en_US__61395695791648.migrationadds3


     f. Click Active Directory Domain Services to install it, click Add Features when prompted and click Next

     SLN290322_en_US__71395695858414.migrationadds4


     g. Click Next on Features

     SLN290322_en_US__81395695916181.migrationadds5


     h. Click Next on ADDS

     SLN290322_en_US__91395695974869.migrationadds6


     i. Click Install on Confirmation

     SLN290322_en_US__101395696026666.migrationadds7


3. Promote W12R2-DC to a domain controller in the domain.local forest.

     a. Click the refresh icon in the top center of the Dashboard in Server Manager and a Post-deployment Configuration notification will appear. 

     SLN290322_en_US__111395757895192.migration post deploy


     b. Click Promote this server to a domain controller to begin the Active Directory Domain Services Configuration Wizard

     SLN290322_en_US__121395757935880.migration dc 1


     c. Ensure Add a domain controller to an existing domain is checked and type the domain name in Domain:.

     d. Click Change... next to Supply the credentials to perform this operation and type Administrator@domain.local where domain.local is the fully qualified domain name (FQDN) of the actual domain.  Enter the Administrator password.

     SLN290322_en_US__131395757970225.migration dc 2


     e. Type the Directory Restore Mode (DSRM) password, confirm it and click Next on Domain Controller Options.

     SLN290322_en_US__141395757999601.migration dc 3


     f. Click Next on DNS Options.

     SLN290322_en_US__151395758028023.migration dc 4


     g. Click Next on Additional Options.

     SLN290322_en_US__161395758054040.migration dc 5


     h. Click Next on Paths.

     SLN290322_en_US__171395758089119.migration dc 6


     i. Click Next on Preparation Options.

     SLN290322_en_US__181395758119213.migration dc 7


     j. Click Next on Review Options.

     SLN290322_en_US__191395758145292.migration dc 8


     k. Click Install on Installation to complete the wizard. The server will reboot upon completion.

     SLN290322_en_US__201395758199012.migration dc 9


4. Transfer the Domain naming operations master Flexible Single Master Operations (FSMO) role from W08R2-DC to W12R2-DC.

     a. Open Server Manager by pressing Windows Logo+R, type servermanager.exe and press Enter. The same task can be accomplished by pressing Windows Logo and selecting Server Manager on the left side of the screen.

     b. Click the Tools menu in the upper right of Dashboard in Server Manager and select Active Directory Domains and Trusts

     SLN290322_en_US__211395758257763.migration addt 1


     c. Right-click on Active Directory Domains and Trusts and choose Change Active Directory Domain Controllers. Click on W12R2-DC and click OK.

     SLN290322_en_US__221395758281498.migration addt 2
 

     d. Right-click on Active Directory Domains and Trusts and choose Operations Master.... Click Change, acknowledge Yes to change the Domain naming operations master FSMO to W12R2-DC and click OK to complete the task.

     SLN290322_en_US__231395758304921.migration addt 3 


5. Transfer the RID, PDC and Infrastructure FSMO roles to W12R2-DC.

     a. Open Server Manager by pressing Windows Logo+R, type servermanager.exe and press Enter. The same task can be accomplished by pressing Windows Logo and selecting Server Manager on the left side of the screen.

     b. Click the Tools menu in the upper right of Dashboard in Server Manager and select Active Directory Users and Computers

     SLN290322_en_US__241395758335984.migration aduc 1


     c. Right-click on the domain name in  Active Directory Users and Computers and choose Change Active Directory Domain Controllers. Click on W12R2-DC and click OK.

     SLN290322_en_US__251395758366985.migration addt 2
 

     d. Right-click on the domain name Active Directory Users and Computers and choose Operations Master.... Click Change on the RID tab, acknowledge Yes to change the RID FSMO role to W12R2-DC and click OK to complete the task. Perform the same task on the PDC and Infrastructure FSMO roles.

     SLN290322_en_US__261395758393001.migration aduc 2 


6. Transfer the Schema master FSMO role from W08R2-DC to W12R2-DC.

     a. Press Windows Logo+R, type regsvr32 schmmgmt.dll and press Enter. Acknowledge the successful registration of the .dll by clicking OK

     SLN290322_en_US__271395758475175.migration run regsvr32

     SLN290322_en_US__281395758504098.migration dll


     b. Windows Logo+R, type mmc and press Enter to open the Microsoft Management Console (MMC)

     SLN290322_en_US__291395758528052.migration run mmc


     c. Click File, select Active Directory Schema under Available snap-ins:, click Add and click OK to add the snap-in to the MMC.

     d. Right-click on the domain name in the MMC and choose Change Active Directory Domain Controllers. Click on W12R2-DC and click OK. Acknowledge the message. 

     SLN290322_en_US__301395758557631.migration addt 2


     e. Right-click on the domain name the MMC and choose Operations Master.... Click Change, acknowledge Yes to change the Schema master FSMO role to W12R2-DC and OK to complete the task. 

     SLN290322_en_US__311395758587491.migration schema


7. Install the DHCP Server role on W12R2-DC. Complete steps a through I in section 2 above and install DHCP Server.

8. Migrate the DNS role from W08R2-DC to W12R2-DC.

     a. On W12R2-DC open the Network Connections Control Panel tool by pressing the Windows Logo+R, type ncpa.cpl and press Enter.  

     SLN290322_en_US__321395759712738.Run ncpa cpl


     b. Right-click on the Network Interface Card (NIC) and click Properties

     SLN290322_en_US__331395758703759.migration nic


     c. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties

     SLN290322_en_US__341395758727963.migration properties


     d. Change the Preferred DNS server: to 192.168.0.2 and click OK to complete the change.

     SLN290322_en_US__351395758751729.migration dns 


     e. On W08R2-DC press Windows Logo+R, type dhcpmgmt.msc and press Enter.

     f. In DHCP under IPv4 select Server Options and double-click on 006 DNS Server under Option Name.

     SLN290322_en_US__361395758780621.migration dhcp dns change 


     g. Click Remove under IP Address, change the IP address to 192.168.0.2 and click Add to complete the process. Acknowledge any messages that appear. 

     h. Perform steps a through d in this section on W08R2-DC.

9. Migrate the DHCP role from W08R2-DC to W12R2-DC. Perform the following steps on W12R2-DC.

     a. Press Windows Logo, type Windows PowerShell, right-click on Windows PowerShell and click Run as administrator to open Windows PowerShell.

     b. Type md c:\export and press Enterto create a new folder named export on c:

     c: Type md c:\export\backup and press Enter to create a new folder named backup on c:\export.

     SLN290322_en_US__371395758846904.migration lease md 


     d. Type Export-DhcpServer -ComputerName W08R2-DC.domain.local -Leases -File c:\export\leases.xml -verbose and press Enter to export the leases. 

     SLN290322_en_US__381395758876623.migration lease export


     e. Type Import-DhcpServer -ComputerName W12R2-DC.domain.local -Leases -File c:\export\leases.xml -verbose and press Enter to import the leases.

     SLN290322_en_US__391395758898717.migration lease import 


     f. Open Server Manager by pressing Windows Logo+R, type servermanager.exe and press Enter. The same task can be accomplished by pressing Windows Logo and selecting Server Manager on the left side of the screen.

     g. Click the Tools menu in the upper right of Dashboard in Server Manager and select DHCP

     h. Right-click on DHCP, choose Add Server, click This authorized DHCP server and click OK to add the server.

     SLN290322_en_US__401395758944234.migration dhcp 1 


     i. Right-click on W08R2-DC.domain.local, click Unauthorize and acknowledge Yes.

     j. Right-click on W12R2-DC.domain.local, click Authorize and acknowledge Yes.

     k. Click on W12R2-DC.domain.local, click Action, click All Tasks and click Restart to restart the DHCP service.

     SLN290322_en_US__411395758977876.migration dhcp 2  

Note: The IPv4 scope under W12R2-DC.domain.local should have a green check next to it after completing steps e through f. 

 10. Run the Active Directory Domain Services Configuration Wizard on W08R2-DC and demote it.

     a. Press Windows Logo+R, type dcpromo and press Enter. Acknowledge the global catalog message.

     SLN290322_en_US__421395759150833.migration demote 1


     b. Click Next on Delete the Domain.

     SLN290322_en_US__431395759177521.migration demote 2 

Note: Do not proceed if a message appears about the inability to contact another domain controller after clicking Next in step b. The AD environment isn't healthy as W08R2-DC should be able to contact W12R2-DC.

      SLN290322_en_US__441395759268352.migration demote note



     c. Type the Administrator Password, confirm it and click Next.

     SLN290322_en_US__451395759202178.migration demote 3


     d. Click Next on Summary.

     SLN290322_en_US__461395759228257.migration demote 4
 

     e. Click Reboot on completion

11. Remove W08R2-DC from the domain.  

Note: The steps in this section may not be necessary as Windows Server 2012 R2 should automatically remove the computer object. They are provided in the event this doesn't occur. 

     a. Log on to the server using the local Administrator account. Press the Windows Logo+R, type sysdm.cpl and press Enter to open System Properties

     SLN290322_en_US__471395761124899.migrationsysdm


     b. Click Change.... 

     SLN290322_en_US__481395761176619.migration workgroup1


     c. Click Workgroup:, enter a WORKGROUP name and click OK.

     SLN290322_en_US__491395761220199.migration workgroup2


     d. Click OK to accept the Computer Name/Domain Changes dialog box.

     SLN290322_en_US__501395761262747.migration workgroup3


     e. Click OK to accept the Computer Name/Domain Changes dialog box.

     SLN290322_en_US__511395761301670.migration workgroup4


     f. Click Close

     g. Click Restart Now to restart the server.

 

Additional Information:

Information about migrating from Windows Server 2003 to Windows Server 2012 R2 can be found here.

Cause

Dell Technologies

Resolution

Copyright 2020

Article Properties


Affected Product

Servers, Microsoft Windows 2008 Server R2, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2

Last Published Date

23 Mar 2021

Version

4

Article Type

Solution

Rate This Article


Accurate
Useful
Easy to Understand
Was this article helpful?

0/3000 characters