Introduction - Creating new users with WSH
In Active Directory, when you need to create one or two users, Active Directory User's
and Computers is the classic tool. However, there may be times when you
prefer to use WSH (Windows Scripting Host) to generate new user accounts.
WSH Topics
Before we consider the user, first we need to build an OU (organizational
unit) to house the users.
An advantage of having a special OU for learning about scripting is that the
accounts you produce' do not get mixed up with existing accounts in the Users
container.
So we will call upon WSH to generate a new OU. In my example I have called
the OU GuyDemo,
change that name if you wish. In WSH, the following line takes care of creating the OU:
Set oOU=oDomain.Create("organizationalUnit", "ou=GuyDemo")
|