List of the domain controllers (DCs) in Active Directory
Following is the command to list out domain controller on your Active Directory environment:
To use the command, you must run on elevated command prompt, as mean you need to open command prompt by Run as administrator.
Click Start, right-click Command Prompt, and then click Run as administrator.
Command:
Or
Or
To use the command, you must run on elevated command prompt, as mean you need to open command prompt by Run as administrator.
Click Start, right-click Command Prompt, and then click Run as administrator.
Command:
nltest /dclist:"Your Domain"
Sample
nltest /dclist:contoso.com
Or
netdom query /Domain:"Your Domain" "Workstation|DC|Server|OU"
Sample
netdom query /Domain:contoso.com DC
Or
dsquery server -o rdn -forest
Or
dsquery server -forest
Comments