Domain Controller Query Command Line
Open command prompt and enter command.
Domain controller query command line. Click the start feature and choose run to open the command prompt. Searches for all domain controllers server objects that are part of the current forest domain domainname searches for all domain controllers server objects that are part of the domain whose domain name system dns names you specify in domainname. On newer versions press windows q to launch the apps screen and type cmd exe into the search bar.
Echo userdomain note that the value in userdomain may not be the. Dsquery server forest. Type nslookup and press enter.
Press enter and the command prompt launches. Search displays all domain controllers in the current domain by default site sitename. 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.
Dsquery server o rdn forest. To find all the domain controllers in the forest with dn and rdn. We can find the domain name of a computer by running the following commnad from command line.
On windows 2012 server click the start button and type cmd windows will search and return the command prompt. Click on command prompt. Still i want to write this post to present simplest way of doing it from a windows xp windows 2003 machine using my favorite command nltest.
Checking which domain controller is being used is a quick and easy process. Read also non authoritative restore of ad domain controller from backup for example to execute the above ldap search query using get aduser open the powershell exe console and run the command. On any domain controller open the command prompt.