Backtrack:  
 
by lunarg on June 11th 2025, at 12:30

Powershell also allows you to easily transfer or seize FSMO roles in an Windows Active Directory. It is now the preferred method and is far more efficient than using the GUI or ntdsutil.

The cmdlet to use is Move-ADDirectoryServerOperationMasterRole and can be used to instantly transfer one, several or all FSMO roles to the designated domain controller.

Transferring roles

To transfer all FSMO roles to a DC called NewDC:

Move-ADDirectoryServerOperationMasterRole -Identity NewDC -OperationMasterRole PDCEmulator,RIDMaster, InfrastructureMaster,SchemaMaster,DomainNamingMaster

Note that you can also use numeric values for the FSMO roles to be transferred:

0PDCEmulator
1RIDMaster
2InfrastructureMaster
3SchemaMaster
4DomainNamingMaster

So the cmdlet above could be abbreviated to:

Move-ADDirectoryServerOperationMasterRole -Identity NewDC -OperationMasterRole 0,1,2,3,4

Seizing FSMO roles

If the old DC carrying the roles is no longer available, you can seize the FSMO roles by using the -Force.

Move-ADDirectoryServerOperationMasterRole -Identity NewDC -OperationMasterRole 0,1,2,3,4 -Force

Note that a regular transfer will always be attempted before seizing a role. Seizing FSMO roles should only be done as a last resort, and only if the broken DC will never be online again.

More information:

 
 
« July 2025»
SunMonTueWedThuFriSat
  12345
6789101112
13141516171819
20212223242526
2728293031  
 
Links
 
Quote
« When a bird does poo poo in your eye, be happy elephants don't fly. »