If you’ve ever had to move FSMO roles in Active Directory to another server you know it’s not as straight forward as it
could should be (At least until I found PowerShell).
Open the Active Directory Module for Windows PowerShell or open PoweShell on a machine with RSAT installed and Import-Module ActiveDirectory
Part of the FSMO roles are Domain and part are Forest so you’ll need to use 2 commands to get the roles.
To get the Domain role holders:
To get the Forest role holders:
Moving roles only requires one command. Change the Target-DC to the name Domain Controller you’re moving the FSMO role(s) to.
There are 5 FSMO roles include the ones you want to move.