Check What Domain Controller A Server Is Using
There is a quick and easy way to check which domain controller your windows pc is authenticated to via the command line.
Check what domain controller a server is using. Open a cmd prompt. Have the logged on user launch the command prompt on the target computer. These tests give you a brief overview of the overall health of your active directory domain controller.
If you have multiple domain controllers and want to test them all at once then use this command. We often get asked how to easily via powershell determine which active directory domain controllers and global catalog servers an exchange 2007 2010 2013 or 2016 are using for directory access during an exchange migration using the priasoft migration suite for exchange. See the figure below.
Using a to run against all domain controllers. Click the start feature and choose run to open the command prompt. As you may know exchange dsaccess will choose its list of server s based on suitability tests and then caches this access info.
Preparing this checklist is time consuming but considering the criticality of domain controller it is worth spending time on this. Open command prompt and enter command. If you have multiple domain controllers in your environment and you want to check with domain controller is authenticating your client you can execute the following command on command prompt.
Execute it with elevated privileges nltest dsgetdc domain this will return you the domain controller you are getting authenticated from. To get the current list of dc s and gc s run the following powershell command. Type set logonserver the name of the domain controller that authenticated the user will be returned.
Press enter and the command prompt launches. See the figure below. Type nslookup and press enter.