Transfer FSMO roles with PowerShell
Check Schema Version (assume your domain name is domainname.local)
dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope base -attr objectVersionThe following diagram maps between the objectVersion attribute value and the Active Directory schema commutability:
13 -> Windows 2000 Server
30 -> Windows Server 2003 RTM, Windows Server 2003 with Service Pack 1, Windows Server 2003 with Service Pack 2
31 -> Windows Server 2003 R2
44 -> Windows Server 2008 RTM
47 -> Windows Server 2008 R2
56 -> Windows Server 2012 RTM
Reference: Microsoft KB55608630 -> Windows Server 2003 RTM, Windows Server 2003 with Service Pack 1, Windows Server 2003 with Service Pack 2
31 -> Windows Server 2003 R2
44 -> Windows Server 2008 RTM
47 -> Windows Server 2008 R2
56 -> Windows Server 2012 RTM
Check FSMO roles
netdom query /domain:homenet fsmoRole numbers can be used in command instead of role names.
Operation Master Role Name
|
Number
|
PDCEmulator |
0
|
RIDMaster |
1
|
InfrastructureMaster |
2
|
SchemaMaster |
3
|
DomainNamingMaster |
4
|
Move-ADDirectoryServerOperationMasterRole -Identity "target-dcname" –OperationMasterRole 0,1,2,3,4
Transfer all 5 FSMO roles using numbers: (forced
Move-ADDirectoryServerOperationMasterRole -Identity "target-dcname" –OperationMasterRole 0,1,2,3,4 -Force
Comments