One fundamental technique you can use with ADSI is creating users. Although using the graphical user interface (GUI) to create a single user is easy, using the GUI to create a dozen or more users would certainly not be. In addition, as you’ll see, because there is a lot of similarity among ADSI scripts, deleting a dozen or more users is just as simple as creating them. And because you can use the same input text file for all the scripts, ADSI makes creating temporary accounts for use in a lab or school a real snap.
To create users, do the following:
Use the appropriate provider for your network.
Connect to the container for your users.
Specify the domain.
Specify the User class of the object.
Bind to Active Directory.
Use the ...