How To Find Your Logon Server In A Domain Environment

logonserverAre you an IT administrator and want to make sure your users are authenticating against a local domain controller? Do you want to make sure they’re running their logon scripts locally and not from a server 20,000 kilometres away?

To check and make sure, its easy. Just open a command prompt on a computer on your domain and type:

echo %logonserver%

This will print the value of the environment variable LOGONSERVER giving you the machine name of the domain controller used.

Its widely known knowledge, but sometimes you just never know. I hope this helps somebody out.

22 thoughts on “How To Find Your Logon Server In A Domain Environment”

  1. This is when you can get to the machine, what if you wnat to klnow what xyz machine’s logon domain controller is and the xyz machine is someware in remote area?

  2. Hey there, if you want the username of the currently logged on user, open a command prompt (run -> cmd) and type echo %username%. Did you mean this or are you after the domain administrator login?

  3. Thank you. I could not find this anywhere else on the net. I couldnt think of how to word my question. haha

  4. Greetings, I do believe your website may be having browser compatibility issues.
    Whenever I look at your blog in Safari, it looks fine
    however when opening in I.E., it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Aside from that, great website!

  5. Logon Server used to authenticate a user in an specified environment locally. @Dustin Shaw Can I have some article or document regarding PSEXEC and remote commands for ADs. Email:

  6. In fact no matter if someone doesn’t know afterward its up to other visitors that they will help, so here it happens.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s