Lab 23 Creating Multi-Valued Users

In this lab, you are going to practice creating users. You’ll place the user in the OU created in Lab 22. The result of this will eventually become a subroutine that you can employ in other scripts when you need to use Users.

Lab Instructions

  1. Open Notepad.exe.

  2. On the first line, type Option Explicit.

  3. Declare the following variables: provider, ou, domain, oClass, oCN, objDomain, objUser, oUname, and oDescription.

  4. Assign the LDAP provider to the variable provider. It will look like the following:

    provider = "LDAP://"
  5. Assign the Lab22 OU to the OU variable. It will look like the following:

    OU = "ou=lab22,"
  6. Assign the domain used in step 5 of Lab 22 to the domain variable. This domain should be the one on your local network ...

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.