In this post I will document the steps I took to migrate a customer Active Direct from Windows 2008 R2 to Windows 2012 R2.
- Complete a full backup of your existing server.
- Check the Schema version of AD DS by running regedit, navigating to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NTDS\Parameters and noting the current Schema version.
- Verify that your AD is working properly.
- Prepare a new Windows Server 2012 R2 that will host the AD DS services.
Step 1: Preparing your existing forest via the adprep command
- Insert the Windows Server 2012 DVD into the DVD drive of the Windows Server 2008 R2 Domain Controller.
- Open command prompt and execute the command cd d:\support\adprep
- Type adprep /forestprep and press enter. Type C and then press Enter
- Execute the following command: adprep /domainprep
- Check the Schema version of AD DS by running regedit, navigating to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NTDS\Parameters and noting the current value of the key. Schema version should be 69
- Demote and decommission secondary domain controller
- Click Start, Run…
- Type dcpromo and click OK
- Click Next > on the Welcome page
- If the domain controller has the global catalog service, make sure your primary DC also has the service enabled and click OK. This can be done by opening up Active Directory Sites and Services and viewing the services for each domain controller.
- Make sure the Delete this domain because this server is the last domain controller in the domain is UNCHECKED, and click Next >
- Type in a new password to be used for the Local Administrator account the machine will contain after it is demoted.
- Click Next on the Summary page
- Check the Reboot on completion box to restart the server after the service has been removed
- Log back into the DC upon reboot and open up Server Manager
- Remove Roles from Server
- Disjoin the machine from the domain
Step 2: Promoting the Windows Server 2012 Server domain controller
- At this point, you should have one Server 2008 R2 Domain Controller and a blank Server 2012 R2 machine joined to the domain ready for the Active Directory services.
- Start Server Manager on your new Server 2012 R2 machine.
- Select Manage in the top right and select Add Roles and Features
- Click Next on the Before you begin screen
- Click Next > on the Select installation type screen
- Ensure your new server is selected and click Next >
- Check the box next to Active Directory Domain Services
- Click the Add Features button
- Click Next >
- Click Next >
- Check the box that says Restart the destination server automatically if required
- Click the Install button
- Once the install is done, click the Close button
- Next, head back to the Server Manager screen and select the warning icon with the flag; then select Promote this server to a domain controller.
- On the Deployment Configuration page, make sure Add a domain controller to an existing domain is checked and hit Next >
- Check Domain Name System (DNS) server, Check Global Catalog (GC), and uncheck Read only domain controller (RODC). Enter a strong password to be used to access Directory Services Restore Mode and click Next >
- Click Next > on the DNS Options page
- Click Next > on the Additional Options page, or if you would like, you can manually select a domain controller to replicate data from and then hit Next >.
- Click Next > on the Paths page
- Click Next > on the Review Options page
- Click Install on the Prerequisites Check page
Step 3: Verify the new Windows Server 2012 Domain Controller
- Open Active Directory Users and Computers, expand <Your Domain> and click the Domain Controller OU to verify your server is listed.
- Open DNS Manager, right-click on <Your Domain>, select Properties and then click Name Servers Tab. Verify that your server is listed in Name Servers: lists.
- Open Active Directory Sites and Services; verify that your server is listed in Servers under Default-First-Site-Name.