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.
andre_chaperonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

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

NET SEND username test
NBTSTAT -c
look for username, match it up with IP.
PING -a IPaddress
0
 
dlb6597Commented:
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 xxx.xxx.xxx.xxx to resolve the name)
0
 
jg733Commented:
Try net session
0
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.

 
MFalconCommented:
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.
0
 
benstockCommented:
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 http://www.harlequinit.com/temp/loggedon.exe
_______________
@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

: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 echo %%k\%%l is logged onto %%a
goto end


:end

________________________
You'll need a copy of loggedon.exe from www.sysinternals.com

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

From novice to tech pro — start learning today.