| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
How can you tell who's logged in?
|
Original Message
|
Name: dan
Date: July 3, 2002 at 06:25:06 Pacific
Subject: How can you tell who's logged in? |
Comment: You walk up to an nt4 workstation computer, how can you tell who's logged in to it?
Report Offensive Message For Removal
|
|
Response Number 3
|
|
Reply: (edit)If vb scripting is enabled you can put the following code into a file called getuser.vbs and place it somewhere where its easily accessible on a shared drive. Execute the file and it should return the Doman name, user name and workstation name. Set W = WScript.CreateObject("WScript.Network") Dim S Stop S = "Domain:" + vbTab S = S + W.UserDomain S = S + vbCr + "Computer:" S = S + vbTab + W.ComputerName S = S + vbCr + "UserName:" S = S + vbTab + W.UserName WScript.Echo S
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: Spiney69
Date: July 8, 2002 at 03:39:26 Pacific
|
Reply: (edit)There is a command line tool in the resource kit called whoami.exe which will tell you who is logged on. Theres also a tool you can download called netusers.exe which can also tell you this from a remote PC.
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Windows NT Forum Home