Show the domain server used at log in.

Mar 31, 2011 | Server administration, Technology, Windows | 0 comments

Lets say you have more than one domain controler in your organization. If your having issues with services not logging for some reason, you may want to be able to look at the logs on that DC. To do that you first need to know what DC your need to connect to.

From the server you are having problems with, run the following very simple command to get this information.

echo %logonserver%

The logonserver in that command is surrounded with the % sign because it is a variable. This makes it possible to use that information in scripts etc.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.