Move FSMO Roles Using PowerShell | Active Directory Domain Controller AD DC
-
Well known commands but very handy to have them all in one place.
First check where things are currently held..
get-addomain | select InfrastructureMaster, PDCEmulator, RIDMaster Get-ADForest | select DomainNamingMaster, SchemaMaster
And then these commands to move the roles. my_dc is the name of the DC to which to want to move the roles.
Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" PDCEmulator Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" RIDMaster Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" Infrastructuremaster Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" DomainNamingmaster Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" SchemaMaster
-
@scottalanmiller Maybe place it on a Git Repo as well so you have scripts and information ready to us.
-
I'm a fan of the one liner assuming you are transferring all roles to the same DC.
Move-ADDirectoryServerOperationMasterRole -Identity "DC-Server" -OperationMasterRole 0,1,2,3,4 0: PDCEmulator 1: RIDMaster 2: InfrastructureMaster 3: SchemaMaster 4: DomainNamingMaster
-
@syko24 said in Move FSMO Roles Using PowerShell | Active Directory Domain Controller AD DC:
I'm a fan of the one liner assuming you are transferring all roles to the same DC.
Move-ADDirectoryServerOperationMasterRole -Identity "DC-Server" -OperationMasterRole 0,1,2,3,4 0: PDCEmulator 1: RIDMaster 2: InfrastructureMaster 3: SchemaMaster 4: DomainNamingMaster
Me too. This is what I normally use. SOOOO helpful.
Not sure why powershell made it so complicated to find who has the roles.
netdom query fsmo was so easy.