Change FSMO roles with Powershell

I just added new domain controllers (2012 R2) to my domain.

And was looking for powershell options to migrate my FSMO roles.
Well here it is!

 

Update:
Perhaps you will receive the following error:
Move-ADDirectoryServerOperationMasterRole : Access is denied
At line:1 char:42
+ Move-ADDirectoryServerOperationMasterRole <<<<  -Identity “DC02” -OperationMa
sterRole PDCEmulator,RIDMaster,InfrastructureMaster,SchemaMaster,DomainNamingMa
ster
    + CategoryInfo          : NotSpecified: (Microsoft.Activ…DirectoryServer
   :ADDirectoryServer) [Move-ADDirector…ationMasterRole], ADException
    + FullyQualifiedErrorId : Access is denied,Microsoft.ActiveDirectory.Manag
   ement.Commands.MoveADDirectoryServerOperationMasterRole

Your user does not have the correct permissions. Your user must be Enterprise Admin of be a member of the Schema admin group.

About the Author

Sander

No Comments

Comments are closed.