Query Domain Controller Roles
The below command will store all the domain.
Query domain controller roles. Tracks the assignment of sids security identifiers throughout the domain. To list all the domain controllers in a domain that are also global catalog servers. Queries the domain for the current list of operations master role holders.
Today i would like to show you how to prepare domain controllers report using data table to get all dc s we will use activedirectory module. Queries the domain for the list of ous under which the user that you specify can create a computer object. Click on command prompt.
Type connections and press enter. On any domain controller open the command prompt. Type roles and press enter.
Dsquery server forest hasfsmo schema note. Active directory contains five roles called flexible single master operation roles fsmo these roles are required for the domain controllers to function correctly. These role holders are also known as flexible single master operations fsmo.
The above command should return the five roles and which dc they are on. After each enter appears a confirmation window. From the command prompt type netdom query fsmo and hit enter.
Basically you can get list of all domain controllers from your domain using just two commands. Type connect to server dc01 and press enter where dc01 is the server computer name that will transfer the fsmo roles to. Queries the domain for the current primary domain controller.