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!

How to get a list of User names and their associated Computer name?

Status
Not open for further replies.

ItaliaNYC

MIS
Sep 13, 2006
13
US
Hey all; is their a way or a utility that will give a report that lists all user names in a Domain as well the computer name they log into.

Thanks.
 
Usernames aren't tied to Machines name unless you specified the only allow to logon to permission.

The only real way to gleen what you're asking here noting the exception above is to turn on auditing to the level which records both the username and machine name.
 
Of course it might be easier to just go look at the domain controller and run the appropriate Active Directory.

Assuming you have some other reason, you can run a batch file that outputs the data >> to a text file.

the NBTSTAT command pointed at an IP address will tell you the machine name and user name.

If you have Perl installed you could run a script to do similar or as the previous poster said use VBscript.


 
Thanks for all the suggestions! I will use a mixture of all of the above to fulfill our requirements.
 
There is an easy way to do this if you are running Symantec Antivirus on your network. Use the Symantec System Center Console and it will list the computer name, username, and IP address leased by that computer. If you arent running Symantec I am sure the other antivirus aps have something similar.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top