O'Reilly logo

Special Edition Using Microsoft Active Directory by James Hudson, Sean Fullerton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required