
Active Directory Administration Cookbook, Second Edition
By :

Follow this recipe to find out which domain controllers run which FSMO roles.
To query FSMO roles, sign in with a domain account.
To locate the domain controllers running the FSMO roles, run the following command on any domain-joined device, member server, or domain controller:
netdom.exe query fsmo
Or use the following lines of Windows PowerShell on a domain-joined system that has the Active Directory Module for Windows PowerShell installed:
Get-ADForest | Format-List DomainNamingMaster,SchemaMaster Get-ADDomain | Format-List InfrastructureMaster,PDCEmulator,RIDMaster
You can insert the last line in a foreach loop when you have multiple domains in the forest.
Domain controllers hold FSMO roles. Each FSMO role is automatically assigned to one domain controller. This information is stored in the Active Directory database. The information for the domain controller holding the Schema...