|
|
|
|
A VBScript logon script demonstrating how to log information to a log file during logon. The program logs the date and time, the user name, the computer name, and the IP address assigned to the computer. The information is appended in one line to a log file in a shared folder on the network. A similar script could log information during StartUp, ShutDown, and Logoff. If the clients are Windows 2000 or above, these scripts can be defined in Group Policy. Logon and Logoff scripts run with the permissions of the user object. The group "Domain Users" should be given permission to write to the share that has the log file. StartUp and Shutdown scripts run with the permissions of the computer object. The group "Domain Computers" should be given write permissions to the share where these scripts log information. StartUp and Shutdown scripts can log computer information, but not user information. The same log file can be used by all four scripts. That is why this program includes the string "Logon" in the line that is written to the log file. The information written by this program to the log file is delimited by semicolons. The log file can be imported into a spreadsheet program for analysis. For example, you could filter on computer name to see all of the activity on one machine. This program should work on any 32-bit Windows client that can log onto the domain. Windows NT and Windows 98/95 clients should have DSClient installed. If DSClient is not installed, they need WSH and ADSI installed. If this script will run on Windows 95 or Windows 98 clients, you will need to add the loop required to retrieve the user NT name during logon on these clients. This loop can be copied from the programs Logon1.txt, Logon2.txt, or Logon4.txt. The share and log file names are hard coded in the program. Logon5.txt <<-- Click here to view or download the program |
Send mail to
HilltopLab@RLMueller.Net with questions or comments about this web site.
|