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:
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.