Alan's Blog

"Yeah. I wrote a script that will do that."

Get a list of domain user logons for a list of computers

Posted on July 13th, 2011

Where has Bob logged on?  You can scan the security logs to get this information.  SCCM sometimes is available to give you a list.  But the list of people who have logged on is also available from the computer itself. 

PCDomainLogonHistory.vbs creates a list of users who have logged onto a computer.  It takes a list of names as input.  If you have Excel installed, I use it for the file open dialog, and to resave the log in Excel.  If not, you get a text file.

 

Tags:
Filed under Scripting, Security, VbScript, Windows Administration | 2 Comments »

Please Note

All the scripts are saved as .txt files. Newer files have a "View Script" button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use "Save Target As". Rename file from Name_ext.txt to Name.ext.

To see a full post after searching, please click on the title.

PowerShell Scripts were written with Version 3 or 4.

https connections are supported.

All new users accounts must be approved, as are comments. Please be patient. It is pretty easy to figure out my email address from the scripts, and you are welcome to contact me that way.

Site Search

Categories

Archives

SQL Site

Bad Behavior has blocked 169 access attempts in the last 7 days.