November 22, 2012

Active Directory - determining domain controllers with FSMO and GC

How to determine which domain controllers hold FSMO and Global Catalog roles via command line?

For Flexible Single Master Operations:
dsquery server -hasfsmo schema
dsquery server -hasfsmo name
dsquery server -hasfsmo infr
dsquery server -hasfsmo pdc
dsquery server -hasfsmo rid

netdom query fsmo

To get list of servers with Global Catalog role:
dsquery server -isgc

No comments:

Post a Comment