π Transferring FSMO Roles to Another Domain Controller html Copy Edit
FSMO (Flexible Single Master Operations) roles are critical for Active Directory functionality. This guide shows how to transfer all FSMO roles to a new Domain Controller (HQ-DC01
) using both GUI and PowerShell.
π FSMO Roles Overview
- Schema Master
- Domain Naming Master
- PDC Emulator
- RID Master
- Infrastructure Master
π§ Method 1: Transfer FSMO Roles via PowerShell
- Open PowerShell as Administrator on any DC.
- Run the following command to transfer all FSMO roles to
HQ-DC01
:
Import-Module ActiveDirectory
Move-ADDirectoryServerOperationMasterRole -Identity "HQ-DC01" -OperationMasterRole 0,1,2,3,4 -Confirm:$false
This command transfers all five roles at once:
- 0 β PDC Emulator
- 1 β RID Master
- 2 β Infrastructure Master
- 3 β Schema Master
- 4 β Domain Naming Master
β Verify the Transfer
Get-ADForest | Select-Object SchemaMaster, DomainNamingMaster
Get-ADDomain | Select-Object PDCEmulator, RIDMaster, InfrastructureMaster
π₯οΈ Method 2: Transfer FSMO Roles via GUI
1. Transfer RID, PDC, Infrastructure Master
- Open Active Directory Users and Computers (dsa.msc)
- Right-click the domain β click Operations Masters
- Go through the RID, PDC, and Infrastructure tabs
- Click Change on each tab to transfer the role to
HQ-DC01
2. Transfer Domain Naming Master
- Open Active Directory Domains and Trusts (domain.msc)
- Right-click Active Directory Domains and Trusts at the top left
- Select Operations Master
- Click Change
3. Transfer Schema Master
- Run the following to register the Schema snap-in:
regsvr32 schmmgmt.dll
- Run
mmc
β Add Snap-in β Active Directory Schema - Right-click Active Directory Schema β Change Active Directory Domain Controllerβ¦
- Select HQ-DC01
- Then right-click again β Operations Master β Click Change
π Notes
- You must be a Domain Admin and a Schema Admin to transfer all roles.
- The Schema Master snap-in only connects to DCs that are writable and have a replica of the schema.
- If a DC is unreachable, roles must be seized rather than transferred.
β Final Tip
Use netdom query fsmo
to check current FSMO role holders at any time.
netdom query fsmo