This procedure requires the ActiveDirectory PowerShell module to be installed and loaded.
These commands can be run from either the current or future role holder, or from a member computer running RSAT.
Roles can be specified by name or number, the following table outlines the Names & Numbers for the FSMO roles:
| Role Name | Number |
|---|---|
| PDCEmulator | 0 |
| RIDMaster | 1 |
| InfrastuctureMaster | 2 |
| SchemaMaster | 3 |
| DomainNamingMaster | 4 |
In order to transfer all roles the following command is used:
Move-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator
orMove-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole 0,1,2,3,4
Roles can be seized rather than transferred by adding the -Force parameter. For example:Move-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator -Force
orMove-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole 0,1,2,3,4 -Force
Obviously each role can also be moved independently by specifying a single role as per the command below (to transfer the PDC Emulator role):Move-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole PDCEmulator
orMove-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole 0
Here is an example of Seizing the Schema Master role:Move-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole SchemaMaster -Force
orMove-ADDirectoryServerOperationMasterRole -Identity "<NEW_DC>" -OperationMasterRole 3 -Force