Lab 33 Adding Logging to a Logon Script

In this lab, you add logging to the logon script that was created in Lab 32.

Lab Instructions

  1. Open Notepad.exe.

  2. Open up the Lab33Starter.vbs file and save the file as Lab33Solution.vbs.

  3. Open the Lab33Starter2.vbs file.

  4. Copy the declared variables from the Lab33Starter2.vbs file, and paste them into the Header information section of the Lab33Solution.vbs file. The new Header information section of the script looks like the following:

    Option Explicit Dim fServer Dim home Dim wshNet Dim ADSysInfo Dim CurrentUser Dim strGroups Dim GroupMember Dim objFSO ' holds connection to file system object Dim objFile ' holds hook to the file to be used Dim message ' holds message to be written to file Dim objData1 ' holds data ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.