Who Needs A Journal When You Have The Internet!

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 responses to “How To Find Your Logon Server In A Domain Environment

  1. asuwest March 31, 2009 at 3:41 am

    thanks. Couldn’t remember…..

  2. Gary Williams July 24, 2009 at 8:37 pm

    Doesn’t work when the %logonserver% envvar is hidden!

  3. Anonymous February 3, 2010 at 5:32 am

    Thank you!!

  4. Anonymous July 8, 2010 at 6:15 am

    Thank you!!!

  5. Alex February 25, 2011 at 12:41 am

    An easier command to run: >set log

  6. Anonymous September 10, 2011 at 12:04 pm

    great now all i need to know is the domain user name

  7. harrochina March 22, 2012 at 10:43 am

    TY!!! I forgot

  8. Pingback: How To Find Your Logon Server In A Domain Environment « Chronicles of a Citrix Administrator…

  9. Pingback: Which logon | Memorialtees

  10. Igor February 19, 2013 at 2:21 am

    to check logged in user type: whoami

  11. Joshua April 12, 2013 at 3:45 am

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

  12. Dustin Shaw April 19, 2013 at 8:42 am

    Its actually very simple to use PSEXEC to see the logonserver of a remote machine.

    CMD>psexec \\remotepc nltest /sc_query:domain_name

    **Replace remotepc with the computer name you want to connect to, and domain_name with your domain.

    Credit goes to #3 Herb Martin

  13. twitter password May 3, 2013 at 1:20 am

    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!

  14. Ravi Dubey May 10, 2013 at 11:42 am

    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:

  15. sharecash May 11, 2013 at 2:39 pm

    Dead indited content material , thanks for information .

  16. Erica May 19, 2013 at 4:47 am

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

  17. playstation 3 emulator x May 20, 2013 at 8:49 pm

    Interesting… How do you know this?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s


Get every new post delivered to your Inbox.

Join 142 other followers

%d bloggers like this: