When creating computer accounts you basically have two options. You can create the account when you join the computer to the domain. The account is automatically created within the Computers or Domain Controllers container. Or you can pre-create the account within Active Directory Users and Computers.
To create a computer account using Active Directory Users and Computers:
1. Click Start, Point to Administrative Tools, and click Active Directory Users and Computers.
2. Right click the container in which you want to create the account, point to New, and click Computer.
3. Type in a unique computer name and select the user or group with permission to join the computer to the domain. The default group is Domain Admins.
4. If the computer is a pre-Windows 2000 computer select the option to Assign this computer account as a pre-Windows 2000 computer.
5. If the computer is going to be used as a backup for a domain controller, select the option to Assign this computer as a backup domain controller.
6. Click OK.
You can also script multiple users additions to your Active Directory. Creating user accounts is a fundamental task for any organization supporting computer users. In most network environments, each employee is assigned a user account that must be used in order to access local and network computing resources.
As shown in the following code sample, it takes only a few lines of code to create a user account. To create a user account, the script needs only to contain a valid path to the Active Directory container where a user account should be created, as well as two mandatory attributes of the user class, the common name (cn attribute) and the SAM account name (sAMAccountName attribute). For example, this code creates a user account with the common name MyerKen:
Set objOU = GetObject("LDAP://ou=Management,dc=NA,dc=fabrikam,dc=com")
Set objUser = objOU.Create("User", "cn=MyerKen")
objUser.Put "sAMAccountName", "myerken"
The system automatically generates a GUID and a security identifier (SID) for the user account object.
For more information on this check out this page here.</a>