List FSMO Roles

Posted By on May 22, 2015 |


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

 

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

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

  • “CN=HOSTNAME,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=lab,DC=com”