Skip to Content
Microsoft® Windows® Scripting Self-Paced Learning Guide
book

Microsoft® Windows® Scripting Self-Paced Learning Guide

by Ed Wilson
April 2004
Beginner
416 pages
11h 3m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting Self-Paced Learning Guide

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® 2000 Scripting Guide

Microsoft® Windows® 2000 Scripting Guide

Microsoft Corporation
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 9780735619814Supplemental ContentCatalog PageErrata