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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tim HolmanCommented:
If Messenger service is installed :

NET SEND username test
NBTSTAT -c
look for username, match it up with IP.
PING -a IPaddress
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.