After preparing the AD schema and demoted the secondary DCs, additional steps are required to migrate Active Directory to Windows 2012 R2.
The installation of new Windows 2012 R2 Domain Controllers and the transfer of AD Roles are the next steps to complete the migration.
Blog series
Migrate Active Directory to Windows 2012 R2 - pt. 1
Migrate Active Directory to Windows 2012 R2 - pt. 2
Migrate Active Directory to Windows 2012 R2 - pt. 3
Deploy the first Windows 2012 R2 DC
From vSphere Web Client (if you work with VMware), deploy a new Windows 2012 R2 Server we'll use as new Domain Controller.
In the new server, perform a Windows Update to have latest patches installed in the system.
Join the server to the domain
From the Server Manager, select Local Server and click on the Workgroup name to join the server to the domain.
In Computer Name tab, click on Change button and type the Domain name to join. Click OK to save the configuration.
Type the credentials of the Domain Administrator to join the machine to domain and click OK.
The new server is joined to the domain. Click OK.
Click OK to continue.
Click Apply to apply changes.
Click Restart now to reboot the server.
Install Roles
To promote the new server as Domain Controller, dcpromo command is no longer used in Windows 2012 but Active Directory Domain Services role must be installed instead.
From the Server Manager, click Add roles and features option.
Click Next to start the Add Roles and Feature Wizard.
Select Role-based or feature-base installation option then click Next.
Thick Select a server from the server pool and select the server to install. Click Next.
Select Active Directory Domain Services role.
Since the selected role requires some additional features, click Add Features to complete the requirements.
Click Next to continue.
Click Next to continue.
Nothing to select here. Click Next.
Check the Restart the destination server automatically if required option and click Yes in the pop up window.
Click on Install button to install selected roles.
The roles are being installed.
When complete, a warning message informs the server must be promoted to a Domain Controller. Click on the Promote this server to a domain controller link.
Promote the server as Domain Controller
When the Active Directory Domain Services Configuration Wizard starts, select the Add domain controller to an existing domain option then click Next.
Make sure DNS and GC are selected and insert a strong password for DSRM.
Click Next.
Leave default Any domain controller to replicate data from then click Next.
Leave default values then click Next.
In the Review Options click Next to continue.
If all prerequisites check passed successfully, click Install to begin installation.
The installation is being performed.
When the process has completed, the server automatically reboots.
When the server has restarted, from Server Manager select Tools > Active Directory Users and Computers.
Expand the domain name and select Domain Controllers item. In the right pane the new Domain Controller shows up.
To verify if the DNS works properly, from Server Manager select Tools > DNS.
Expand the server name and Forward Lookup Zones item. Right click the domain name and select Properties.
Ensure new DC is listed in the Name Servers tab.
Keep same DCs' IP Addresses
If you need to keep same Domain Controllers' IP Addresses during the migration to Windows 2012 R2, setup the 2012 R2 Servers as Domain Controllers with different IPs on the same subnet.
During the promotion procedure, a new DC (i.e. w12r2-dc01) has been installed in the network.
Now change the IP of one of your secondary Windows 2012 R2 Servers (i.e. w12r2-dc02) to the IP of the DC previously shutdown (i.e. w2k8r2-dc02) then restart the server.
After the restart, check the DNS Name Servers tab to see if the server is listed.
Check replica errors executing the command:
C:\>repadmin /replsummary
If no errors are detected, the procedure completed successfully.
Transfer the FSMO roles
Prior decommission the old Domain Controllers, the FSMO roles must be transferred to the new 2012 R2 servers to keep the Active Directory. Five roles in Active Directory must be transferred from the old to the new DCs:
- Schema master
- Naming master
- PDC
- RID master
- Infrastructure master
To proceed, open the Command Prompt with administrative privileges.
To verify FSMO roles are on the Windows 2008 R2 Domain Controller, type the following command:
C:\Windows\system32>netdom query fsmo
The FSMO roles must be transferred to the new 2012 R2 DC using the command ntdsutil.
C:\Windows\system32>ntdsutil
Type roles when prompted then press Enter.
ntdsutil: roles
Type connections command then press Enter.
fsmo maintenance: connections
Type connect to server server2012r2dc.domain.com command where server2012r2dc is the new Domain Controller just deployed then press Enter.
server connections: connect to server w12r2-dc01.nolabnoparty.local
Now type quit command then press Enter.
server connections: quit
After connecting the DC to transfer roles to, type transfer schema master command to proceed with first role then press Enter.
fsmo maintenance: transfer schema master
Type Yes to confirm the transfer.
The schema master role is transferred.
Type transfer naming master and press Enter.
fsmo maintenance: transfer naming master
Type Yes to confirm the transfer.
The naming master role is transferred.
Type transfer PDC and press Enter.
fsmo maintenance: transfer PDC
Type Yes to confirm the transfer.
The PDC role is transferred.
Type transfer RID master and press Enter.
fsmo maintenance: transfer RID master
Type Yes to confirm the transfer.
The RID master role is transferred.
Type transfer infrastructure master and press Enter.
fsmo maintenance: transfer infrastructure master
Type Yes to confirm the transfer.
The infrastructure master role is transferred.
The five roles transfer is now complete. Type quit to exit fsmo maintenance.
fsmo maintenance: quit
Type quit to exit ntdsutil.
ntdsutil: quit
Check the roles to ensure they are on the new Server 2012 R2 using the netdom query fsmo command.
C:\Windows\system32>netdom query fsmo
The roles have been transferred successfully to the new 2012 R2 Domain Controller. Wait some minutes to replicate.
Set PDC to connect an external source
To keep network time in sync is suggested to configure the Domain Controller with PDC role to connect an external source.
Stop the w32time service.
c:\> net stop w32time
Configure the external time sources.
c:\> w32tm /config /syncfromflags:manual /manualpeerlist:”0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org”
Make the PDC as reliable time source for the clients.
c:\> w32tm /config /reliable:yes
Start the w32time service.
c:\> net start w32time
To check new configuration, run the following command:
c:\> w32tm /query /configuration
Part 3 will finalize the migration decommissioning the last 2008 R2 DC and migrating the DHCP service to the new 2012 R2 primary DC.