Are 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.
thanks. Couldn’t remember…..
Doesn’t work when the %logonserver% envvar is hidden!
Thank you!!
Thank you!!!
An easier command to run: >set log
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?
great now all i need to know is the domain user name
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?
even you can use command
SET L
Thank u so much it- Its right on the button……
TY!!! I forgot
no worries.
to check logged in user type: whoami
Thank you. I could not find this anywhere else on the net. I couldnt think of how to word my question. haha
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
http://us.generation-nt.com/answer/verifying-logon-server-help-89478902.html
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!
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: eravidubey@gmail.com
Dead indited content material , thanks for information .
In fact no matter if someone doesn’t know afterward its up to other visitors that they will help, so here it happens.
Interesting… How do you know this?