A frequent question on the newsgroups 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. This is an environment variable so you could use it from a script if you wanted to. 

Share this post: email it! | digg it! | bookmark it! | live it!