Finding a NetBIOS name, knowing only a user name.

How do I find out the computer name of a PC, knowing only the users logon (and that they are logged on somewhere on the network)?
E.G. I am a NT domain administrator on a network of 3000 users. I need to find out the NetBIOS name of the PC, knowing only that a user with an NT logon ID of xxyyzz is logon on.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Tim HolmanConnect With a Mentor Commented:
If Messenger service is installed :

NET SEND username test
look for username, match it up with IP.
PING -a IPaddress
If you are running WINS, run WINSADMN and set a filter using the user's login name.  This will give you the user's IP address.  You can then set a filter using the IP address to get the netbios name.  (or ping -a to resolve the name)
Try net session
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

If you do not have WINS installed but have successful logon audit enabled, you can check the event log of the PDC or the nearest BDC.  The event will tell you the computer name.
I have a batch file for this but is too slow for networks of machines above 100 or so computers.  Call the batch file whereis.bat and you can then do a :

whereis username

It will list all machines where the user is logged on.  Oh I just remembered I had to hack loggedon.exe to get this to work you can get my hacked version from
@echo off
if "%1"=="" goto nocmd

for /f "skip=3 tokens=1" %%a in ('net view') do if NOT "%%a"=="The" for /f "skip=1 tokens=1,2 delims=\ " %%k in ('loggedon %%a') do if /I "%%l"=="%1" echo %1 is logged onto %%a
goto end


for /f "skip=3 tokens=1" %%a in ('net view') do if NOT "%%a"=="The" for /f "skip=1 tokens=1,2 delims=\ " %%k in ('loggedon %%a') do echo %%k\%%l is logged onto %%a
goto end


You'll need a copy of loggedon.exe from

andre_chaperonAuthor Commented:
Thanx for the help...
All Courses

From novice to tech pro — start learning today.