You want to find the domain controllers that are acting as one of the FSMO roles.
For the Schema Master:
Open the Active Directory Schema snap-in.
Right-click on Active Directory Schema in the left pane and select Operations Master.
For the Domain Naming Master:
Open the Active Directory Domains and Trusts snap-in.
Right-click on Active Directory Domains and Trusts in the left pane and select Operations Master.
For the PDC Emulator, RID Master, and Infrastructure Master:
Open the Active Directory Users and Computers snap-in.
Make sure you’ve targeted the correct domain.
Right-click on Active Directory Users and Computers in the left pane and select Operations Master.
There are individual tabs for the PDC, RID, and Infrastructure roles.
In the following command, you
can leave out the
<DomainDNSName> option to query the
domain you are currently logged on.
> netdom query fsmo /Domain:<
For some reason, this command returns a “The
parameter is incorrect” error on Windows Server
2003. Until that is resolved, you can use the
server command shown
<Role> can be
> dsquery server -hasfsmo <
' This code prints the FSMO role owners for the specified domain. ' ------ SCRIPT CONFIGURATION ------ strDomain = "
<DomainDNSName>" ' e.g. emea.rallencorp.com ' ------ END CONFIGURATION --------- set objRootDSE ...