The Flexible single-master operations (FSMO) roles are assigned to the first domain controller in an Active Directory role. To transfer the FSMO roles to another domain controller you can use the PowerShell command below.
Latest posts by Jay Phillips (see all)
The names of the FSMO roles may be typed out as well.
Move-ADDirectoryServerOperationMasterRole –Identity "Target_DC_Name" –OperationMasterRole 0,1,2,3,4
0 = PDC Emulator
1 = RID Master
2 = Infrastructure Master
3 = Schema Master
4 = Domain Naming Master
Press Y for each or A for all.
To verify that the roles have transferred, type the following command:
Get-ADDomainController -Filter * | Select Name, OperationMasterRoles
The result shows the name of domain controllers and FSMO roles assigned to them as shown in the image.
Jay, thanks for the new wiki doc about FSMO roles. You received 60 member points.
Yay for Jay!
you have a space between “– OperationMasterRole” for others to use this cmd just remove the space.
Thanks for the hint!
Short and useful PS command as compared to ntdsutil which is somewhat confusing for beginners.