Another article about a command that I can never remember the syntax when I need it.
The information here is from: https://social.technet.microsoft.com/wiki/contents/articles/6736.move-transfering-or-seizing-fsmo-roles-with-ad-powershell-command-to-another-domain-controller.aspx
To transfer all roles use:
Move-ADDirectoryServerOperationMasterRole -Identity “Target-DC” -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator
To seize the roles append -Force.
You can also substitute the role names with numbers, making a more manageable:
Move-ADDirectoryServerOperationMasterRole -Identity “Target-DC” -OperationMasterRole 0,1,2,3,4 -Force
Much easier to remember than trying to remember which bit of the gui does which role.
Older servers use ntdsutil.exe: