Sep 242008
If you want to know How to Determine Which Domain Controller you logged in
open a command prompt and type the following command
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.
Sample Output
Incoming search terms:
- how to check which domain controller you are connected to (124)
- command to check domain controller logged into (85)
- command to see what domain controller you are connected to (78)
- which domain controller (77)
- command to see which domain controller you are connected to (54)
- how to determine which domain controller you are connected to (42)
- command to see what dc you are connected to (34)
- how to see what domain controller you are logged into (33)
- how to check what domain controller you are connected to (31)
- check which domain controller you are connected to (24)

excellent… thanks for tht