Query Domain Controllers via Command Line
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
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:
The netdom command lists the servers of the current domain if parameter -domain is not specified
netdom query dc netdom query dc -domain <domain>