Query Domain Controller Cmd
This article explains dsquery command line tool and hows how you can use this command line tool to get the list of domain controllers based upon your requirement.
Query domain controller cmd. Click the start feature and choose run to open the command prompt. Dsquery server forest. There is a quick and easy way to check which domain controller your windows pc is authenticated to via the command line.
Please note that you need to install windows support tools package to get nltest command. You can do numerous other things with this command. You can get domain controllers by setting the identity filter or discover parameters.
Press enter and the command prompt launches. Checking which domain controller is being used is a quick and easy process. Get your ad domain domainname get addomain dnsroot get all dc s alldcs get addomaincontroller filter server domainname select object hostname ipv4address isglobalcatalog site forest operatingsystem or alldcs get adforest globalcatalogs.
To list all the domain controllers in the domain northamerica type the following command at the command prompt. The get addomaincontroller cmdlet gets the domain controllers specified by the parameters. Dsquery server o rdn forest.
Type nslookup and press enter. To find all the domain controllers in a domain. Basically you can get list of all domain controllers from your domain using just two commands.
Nltest exe dclist domain name example. Open command prompt and enter command click start and enter cmd windows vista 7 2008 or start run cmd windows xp 2003. 1 steps total step 1.