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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you see what PC a person is logged on to on the domain? 2

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
GB
Does anyone hava a script or util to be able to determine the hostname of a pc that is currently being used by a user?

e.g. find out what computer Bill Smith last logged onto?

Thanks
 
I've posted these script b4 but not as good as richgill's but I notice richgill's link that there's a problem when the user logs to WinME or 98, I believe it was design primarily for domain pc/users.


Try this:

---------------------------------------------------------
From the command prompt.

c:\>FOR /L %i IN (1,1,255) DO ping -a 192.168.0.%i then Enter.

(1,1,255) - (start,step,end) and %i is the variable.
-------------------------------------------------------

If you want the sesult to be in a file. (ping.txt)

c:\>FOR /L %i IN (1,1,255) DO ping -a 192.168.0.%i>>ping.txt

(1,1,255) - (start,step,end)
%i - variable.
ping.txt - Resulting file.
-------------------------------------------------------


I've got this link from SteveTheGeek.

 
I just write the current user name into the computer description using a logon script - works a treat and lets me get the info from users and computers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top