The Flexible single-master operations (FSMO) roles are assigned to the first domain controller in an Active Directory role. To transfer the FSMO roles to another domain controller you can use the PowerShell command below.
The names of the FSMO roles may be typed out as well.
Move-ADDirectoryServerOperationMasterRole –Identity "Target_DC_Name" –OperationMasterRole 0,1,2,3,4
0 = PDC Emulator
1 = RID Master
2 = Infrastructure Master
3 = Schema Master
4 = Domain Naming Master
Press Y for each or A for all.
To verify that the roles have transferred, type the following command:
Get-ADDomainController -Filter * | Select Name, OperationMasterRoles
The result shows the name of domain controllers and FSMO roles assigned to them as shown in the image.