On Your Own: Lab 32 Adding a Group to a Logon Script

In this lab, you will add a group to a logon script.

Lab Instructions

  1. Open Notepad.exe.

  2. Open Lab32Starter.vbs and save it as Lab32Solution.vbs.

  3. Look over the script, and add documentation to each variable that is declared in the script.

  4. Under the Constants, declare a new constant called Production. Set it equal to cn=productiongroup. The completed constant section will look like the following:

    Const HR = "cn=hrgroup"
    Const MARKETING = "cn=marketinggroup"
    Const SALES = "cn=salesgroup"
    Const PRODUCTION = "cn=productiongroup"
  5. Add a new case d to the Select Case construction. Case d is equal to finding the value assigned to the constant Production in the string assigned to strGroups. If the case is met, ...

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.