The Flexible Single Master Operation (FSMO) roles in Active Directory are a set of five critical operations that must be handled by a single domain controller at any given time. These roles ensure the consistency and integrity of the Active Directory database.
Sometimes, you may need to transfer one or more of these FSMO roles to another domain controller. For example, if you’re decommissioning an old domain controller that currently holds FSMO roles, or if you want to redistribute the roles for load balancing purposes.
To check which domain controller currently holds the FSMO roles, you can use the netdom query fsmo command. This will list the current role holders.
To transfer the roles, you’ll use the ntdsutil command-line utility along with the roles and connections options. Here are the steps:
- Open a command prompt on the domain controller you want to transfer the roles to.
- Run
ntdsutilto start the utility. - Run
rolesto enter the roles context. - Run
connectionsto switch to the connections context. - Run
connect to server servername.domain.comto specify the remote domain controller you want to transfer roles from. - Run
quitto go back up a level. - For each role you want to transfer, run one of the following commands:
transfer infrastructure mastertransfer naming mastertransfer PDCtransfer RID mastertransfer schema master
- Run
quitagain to exit ntdsutil.
Finally, run netdom query fsmo again to verify that the roles have been transferred successfully.
It’s important to carefully plan any FSMO role transfers, as they can impact Active Directory operations if not done correctly. Always make sure to follow best practices and have a rollback plan.