Move/Transfer Active Directory FSMO roles using PowerShell

Rather than using the GUI, you can move the Active Directory (AD) from the command prompt using PowerShell in just a few seconds, rather than minutes.

Import the Active Directory PowerShell module:

Import-Module activedirectory

Transfer all the FSMO roles at once, or one by one:

Move-ADDirectoryServerOperationMasterRole -Identity "<DC_Name>" -OperationMasterRole PDCEmulator, RIDMaster, InfrastructureMaster, SchemaMaster, DomainNamingMaster

There are five FSMO roles to transfer:

  1. PDCEmulator
  2. RIDMaster
  3. InfrastructureMaster
  4. SchemaMaster
  5. DomainNamingMaster

To check which FSMO roles are on what domain controller, from the command prompt run netdom query /d:<domain> fsmo

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s