Part 1:
http://badzmanaois.blogspot.com/2008/11/script-to-track-local-logins-vbs.html
Here's a follow-up of the login script posted earlier. This is executed when the user logs off. It will log the following information to the output log file:
Event Type (Login/Logoff)
User (Full User Name)
Computer
Date & Time of the Event
The output log file looks like this:
The script defines the location and name of the output log file (C:\LogFile\Login.csv) and calls the sub procedure Main:
The sub procedure Main checks for the current logged in user's account properties such as .UserName, .DomainName, and .ComputerName. The user's full name is then extracted and is passed to the log file (together with the other earlier-mentioned variables):
The user must have modify permission on the output log file.
No comments:
Post a Comment