Anyone know how to use a script to remotely determine what domain controller someone is logged onto? Using WSH is out since I need to do this for a remote machine.
%logonserver% environment variable will give it to you.
otherwise you will find a registry key with the information in it, this will be accessible using WMI
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.