Tip: You can list the FSMO (Flexible Single Master Operations) roles with Powershell.
Forest
- Schema Master
- Domain Naming Master
Domain
- PDC Emulator
- RID Master
- Infrastructure Master
By using ActiveDirectory module
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function Get-FSMORole { $forest = Get-ADForest $domain = Get-ADDomain New-Object -TypeName PSObject -Property @{ SchemMaster = $forest.SchemaMaster DomainNamingMaster = $forest.DomainNamingMaster PDCEmulator = $domain.PDCEmulator RIDMaster = $domain.RIDMaster InfrastructureMaster = $domain.InfrastructureMaster } } |
Without ActiveDirectory module
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function Get-FSMORole { $forest = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest() $domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() New-Object -TypeName PSObject -Property @{ SchemMaster = $forest.SchemaRoleOwner.Name DomainNamingMaster = $forest.NamingRoleOwner.Name PDCEmulator = $domain.PdcRoleOwner.Name RIDMaster = $domain.RidRoleOwner.Name InfrastructureMaster = $domain.InfrastructureRoleOwner.Name } } |
Note: Get-ADForest and Get-ADDomain are cmdlets from the activediretory module.