Query Domain Controllers

Query Domain Controllers via Command Line

Command dsquery

The dsquery command lists the servers of the current domain if no other parameter is specified

dsquery server
 
dsquery server -d <domain>
 
dsquery server -forest

Command nltest

If <domain> will be left out from the /dclist parameter the DC's of the current domain will be shown

nltest /dclist:<domain>
 
nltest /dclist:

Command netdom

The netdom command lists the servers of the current domain if parameter -domain is not specified

netdom query dc
 
netdom query dc -domain <domain>


Authors:
  • Claus Astheimer