How to Determine What Domain Controller Authenticated the User

A frequent question is how do I know what domain controller logged me in? To find this out, open a command prompt and type "set logonserver".

echo %logonserver% has the same functionality. Incidentally, this is an environment variable so you could use it from a script if you wanted to.

Looking for more useful Active Directory tips and tricks? Check out my book, Active Directory: Designing, Deploying, and Running Active Directory.

Posted Friday, September 22 2006 3:50 PM by Brian Desmond | 13 Comments
Tagged as: ,

Comments, Trackbacks, & Pingbacks

#1 re: How to Determine What Domain Controller Authenticated the User

Thursday, March 08 2007 12:43 PM by Chuck Liveoak

I've been looking for a simpler way of finding this out. Thanks!

#2 re: How to Determine What Domain Controller Authenticated the User

Thursday, July 03 2008 2:10 PM by GL

Very helpful!  Thanks!

#3 re: How to Determine What Domain Controller Authenticated the User

Monday, December 15 2008 9:01 AM by freestlz

the command set l is the same but easier to remember. It's not a number 1 it's an L after set.

#4 re: How to Determine What Domain Controller Authenticated the User

Wednesday, January 21 2009 9:16 AM by ALIM

if u give me alot of information about networking

and server 2003 and2008 and about domain server

thanks

#5 re: How to Determine What Domain Controller Authenticated the User

Thursday, June 11 2009 12:45 PM by Kevin

at a command prompt, type echo %logonserver%

#6 re: How to Determine What Domain Controller Authenticated the User

Sunday, February 21 2010 5:52 AM by Baiju

Thanks it is very good

#7 re: How to Determine What Domain Controller Authenticated the User

Thursday, April 01 2010 12:46 PM by Bob

I have been looking for this all morning. Thanks!

#8 re: How to Determine What Domain Controller Authenticated the User

Wednesday, April 28 2010 7:27 AM by Chris

How about for a remote user?

#9 re: How to Determine What Domain Controller Authenticated the User

Sunday, May 02 2010 7:59 AM by Charles G

Set l

is also another one

#10 re: How to Determine What Domain Controller Authenticated the User

Sunday, May 02 2010 7:59 AM by Charles G

Set l

is also another one

#11 re: How to Determine What Domain Controller Authenticated the User

Friday, July 02 2010 3:38 AM by manoj yadav

i am manoj networking iam domain working please help me

#12 re: How to Determine What Domain Controller Authenticated the User

September 23, 2006 11:42 AM by Jason Haley

#13 re: How to Determine What Domain Controller Authenticated the User

September 23, 2006 11:49 AM by Jason Haley

Leave a comment