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

Getting username from workstation log on

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I can pull up a workstation name in DOS but how can I find the user
name of the person logged into that workstation? There must be
something in DOS I can use to find the user name using a specific
workstation?
 
Try nbtstat -n (computer name)

This only works on the local machine.

mot98..[peace]

"Where's the beer?"
 

use the following command:

nbtstat -A IPADDRESS

or

nbtstat -a NETBIOSNAME

on the machine itself, use:

echo %username%

Good luck.

Shadow.
 
We use a utility called nbtscan.exe. It is a freeware utility. Search for the filename with GOOGLE. It is extremely fast and can search an IP segment in seconds!
[bugeyed]
 
Just type set in a CMD window

If you can't see it all, type SET | more

This will give you all sorts of useful info.
 
if win nt or win2k just type in 'hostname.exe' from the command for the name of the computer.

for the name of the user logged in try the following:
reg query "HKLM\software\microsoft\windows nt\currentversion\winlogon\defaultusername="
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top