Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find out what domain controller a user logged into

Status
Not open for further replies.

sumgirl

IS-IT--Management
Mar 19, 2003
55
US
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
 
Can you post an example? I have tried pulling the logon server variable, but cant seem to make it work for remote machines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top