Several Ways To List FSMO Roles in Active Directory Forest

by [Published on 26 June 2013 / Last Updated on 26 June 2013]

This tip explains several ways to check FSMO Roles availability in an Active Directory Forest environment.

FSMO (Flexible Single Master Operations) Roles are very critical for Active Directory to run smoothly. As part of the daily Active Directory health tasks, you need to run several command lines tools or customized scripts to check the status of various Active Directory components which includes checking availability of the FSMO Roles.

To check the availability of FSMO Roles in an Active Directory environment, you can run following command line tools (available by default with Operating System installation):

To get the list of FSMO Roles using NetDom command line tool, run the following command:

  • Netdom Query FSMO

And using DSQuery tools

  • DSQuery server –hasfsmo –pdc
  • DSQuery server –hasfsmo –infr
  • DSQuery server –hasfsmo –rid
  • DSQuery server –hasfsmo –name
  • DSQuery server –hasfsmo –schema

Advantage using NetDom command is that it returns the list with FSMO name and the server holding that FSMO role as shown in the below output. The server name is returned in the FQDN format.

  • Schema master                           
  • Domain naming master    
  • PDC                               
  • RID pool manager           
  • Infrastructure master                    

DSQuery command returns the FSMO holder name but in the DN format. The DN format looks like below:

  • "CN=WIN-LDGR7G88TMO,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=devlab,DC=com"

See Also

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP and was awarded the Microsoft MVP award in Directory Services and Windows Networking. He specializes in Microsoft Azure, Office 365, Directory Services, Failover Clusters, Hyper-V, PowerShell Scripting and System Center products. Nirmal has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to PowerShell-based Dynamic Packs for www.ITDynamicPacks.Net solutions.

Featured Links