You want to create an OU.
Open the Active Directory Users and Computers (ADUC) snap-in.
If you need to change domains, right-click on the Active Directory Users and Computers label in the left pane, select Connect to Domain, enter the domain name, and click OK.
In the left pane, browse to the parent container of the new OU, right-click on it, and select New → Organizational Unit.
Enter the name of the OU and click OK.
To enter a description for the new OU, right-click on the OU in the left pane and select Properties.
Click OK after you are done.
> dsadd ou "
<OrgUnitDN>" -desc "
' This code creates an OU ' ------ SCRIPT CONFIGURATION ------ strOrgUnit = "
<OUName>" ' e.g. Tools strOrgUnitParent = "
<ParentDN>" ' e.g. ou=Engineering,dc=rallencorp,dc=com strOrgUnitDescr = "
<Description>" ' e.g. Tools Users ' ------ END CONFIGURATION --------- set objDomain = GetObject("LDAP://" & strOrgUnitParent) set objOU = objDomain.Create("organizationalUnit", "OU=" & strOrgUnit) objOU.Put "description", strOrgUnitDescr objOU.SetInfo WScript.Echo "Successfully created " & objOU.Name
OUs are used to structure data within Active Directory. Typically, there are four reasons why you would need to create an OU:
It is common practice to group related data into an OU. For example,
user objects and
computer objects are typically stored in separate OUs (in fact, ...