Using ADSI with WSH

In the next few pages, you will take a very hands-on approach to learning the basics of ADSI. This is hardly an exhaustive approach. Therefore, if you want more information, you can find an enormous amount available by searching for ADSI at http://msdn.microsoft.com, including the downloadable Microsoft Active Directory SDK.

In this chapter's ADSI examples, you will create a user, add users to groups, move objects, and enumerate the properties of an object. After you have seen how to script these actions, adapting them to ease your workload will be trivial. For example, the code to create a user could easily be adapted to read a text file to mass create users from another operating system.

Creating a User

In the first example, ...

Get Special Edition Using Microsoft Active Directory 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.