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

Who Am I 1

Status
Not open for further replies.

modorney

Technical User
Sep 5, 2000
65
US
I would like to know who is logged in to a machine. I can look at user manager and see who is logged in over the network, but I want to be able to walk in to the computer room, go up to an NT server, and find out who is actually logged in locally (who actually logged in right there, locally). I don't want to do Ctrl-alt-del and look at the box, I want something like the "whoami" command of Unix.

thanks,
mike
 
It may not be exactly what you are looking for, but it should provide what you are looking for.

There is an environment variable %username%...so, if you jump out to a Dos box and run SET you should see, among other things: USERNAME=whatever.

Hope it helps.
[sig]<p>Doug<br><a href=mailto:dxd_2000@yahoo.com>dxd_2000@yahoo.com</a><br><a href= > </a><br> [/sig]
 
Server manage on the NT box wil give you the info you need. It gives the login name and the Computer name. Hope that helps.
Dom [sig][/sig]
 
Where does Server Manager show the locally logged in user??
[sig]<p>Doug<br><a href=mailto:dxd_2000@yahoo.com>dxd_2000@yahoo.com</a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top