Solved

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

Posted on 2006-10-20
4
129 Views
Last Modified: 2010-04-13
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.
0
Comment
Question by:Italia_NYC
  • 2
4 Comments
 
LVL 9

Expert Comment

by:gopal_krishna
ID: 17777204
0
 
LVL 9

Expert Comment

by:gopal_krishna
ID: 17777230
typo error sorry
0
 
LVL 83

Accepted Solution

by:
oBdA earned 125 total points
ID: 17780137
Try it with Sysinternal's PsLoggedOn (note that it supports a -d switch that's undocumented on the web site to scan a domain): http://www.sysinternals.com/Utilities/PsLoggedOn.html
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17786864
I usually collect this information in my login script.  I add a few lines that go something like:

echo %username,%computername% > \\servername\sharename\%username%.txt

If you want to keep a running tally for tracking purposes and have everyone in the same workbook you can use the same syntax to append a single document:

echo %username,%computername% >> \\servername\sharename\Filename.csv

I also use this to collect MAC and IP Address info

Crow
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question