AD Role Transfer on Windows Server 2012 with PowerShell

Background: Two Windows 2012 DCs, DC01, DC02.

          DC01 is currently unavailable due to hardware failure, use FSMO to force the role from DC01 to DC02.

          The hardware fault of DC01 is repaired. After booting up, execute netdom query fsmo on DC01 and DC02, and find that the roles of the two DCs are the same, and the five roles are themselves.

 

solve:

1. First try to use the GUI to perform role migration, and the failure prompts that the other party is already the role host

2. Use the ntdsutil command to migrate, and the prompt is successful, but using netdom query fsmo to view, the three solutions of RID\PDC\Schema have not been successfully migrated, and they are still on their own.

3. Use PowerShell commands to migrate, the problem is solved


Move-ADDirectoryServerOperationMasterRole -Identity "DC1" -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator -Force

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326771267&siteId=291194637