Check What Domain Controller A Server Is Using
If you want to know what your domain controllers time server configuration is you can run two simple command line query s.
Check what domain controller a server is using. 1 steps total step 1. Open command prompt and enter command. Open a cmd prompt. The dcdiag tool is a microsoft command line utility that can be used to check the health of active directory domain controllers.
As you may know exchange dsaccess will choose its list of server s based on suitability tests and then caches this access info. To get the current list of dc s and gc s run the following powershell command. Using echo username will allow you create a script to identify the authenticating domain controller. On newer versions press windows q to launch the apps screen and type cmd exe into the search bar.
See the figure below. You could always use built in set l command but that s not always accurate due to logonserver variable taking a bit of time to update if you change active directory site and ultimately domain controller you re authentication against. Checking which domain controller is being used is a quick and easy process. Using this checklist we have decommissioned at least 50 domain controllers in multiple environments without any major outage.
These tests give you a brief overview of the overall health of your active directory domain controller. The checklist also takes care of the ad integrated dns server which is very common in most of the ad oriented environment. Have the logged on user launch the command prompt on the target computer. 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.
Press enter and the command prompt launches. Click the start feature and choose run to open the command prompt. Type set logonserver the name of the domain controller that authenticated the user will be returned. If you have multiple domain controllers and want to test them all at once then use this command.
Using a to run against all domain controllers. If you have many domain controllers this will be a lot of information displayed this is where using the f option would come in handy. 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. There is a quick and easy way to check which domain controller your windows pc is authenticated to via the command line.
Type net time querysntp or. Preparing this checklist is time consuming but considering the criticality of domain controller it is worth spending time on this. It is also used to diagnose dns servers ad replication and other critical domain services within your active directory infrastructure. See the figure below.
Remote workers are good example as they tend to be all over the place and set l might give misleading and not precise results.