Have a Question?
Migrate FSMO Roles with PowerShell
Tutorial on how to migrate FSMO Roles with PowerShell
Check the existing FSMO Role Holders
Determined the existing FSMO Role Holders by querying UAT-AD01 which is a Windows 2016 AD Domain Controller in existing AD Domain
# Using PowerShell
Get-ADDomain -Server UAT-AD01 | Select-Object InfrastructureMaster, RIDMaster, PDCEmulator
Get-ADForest -Server UAT-AD01 | Select-Object DomainNamingMaster, SchemaMaster
# Netdom
netdom query fsmo
Migrate FSMO Roles with PowerShell
Move all FSMO Roles to the new AD Domain Controller called "UAT-AD01"
- 0 = PDC Emulator
- 1 = RID Master
- 2 = Infrastructure Master
- 3 = Schema Master
- 4 = Domain Naming Master
Press Y for each or A for all.
Move-ADDirectoryServerOperationMasterRole –Identity "UAT-AD01" –OperationMasterRole 0,1,2,3,4
Verify all FSMO Roles had been transferred to UAT-AD01 successfully
netdom query fsmo
Schema master UAT-AD01.glomac.com
Domain naming master UAT-AD01.glomac.com
PDC UAT-AD01.glomac.com
RID pool manager UAT-AD01.glomac.com
Infrastructure master UAT-AD01.glomac.com
The command completed successfully.