Thursday, 19 February 2015

How to query and move FSMO roles with Server 2012 R2

In order to query the current FSMO roles we can run:
netdom query fsmo
or the painfull way:

Launch ntdsutil.exe:
roles
connections
connect to server <your-hostname>
q
select operation target
list roles for connected server
In order to move FSMO roles the easy way we can use the powershell cmdlet Move-ADDirectoryServerOperationMasterRole:
Move-ADDirectoryServerOperationMasterRole -Identity “Target-DC” -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator
Or the traditional way using ntdsutil:
roles
connections
connect to server <your-hostname>
q
transfer domain naming master
transfer infrastructure master
transfer PDC
transfer RID master
transfer schema master
and finally restart the server!

0 comments:

Post a Comment