Add an OU to active directory.
Syntax DSADD OU OrganizationalUnit_DN [-desc Description] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q] [{-uc | -uco | -uci}] Key OrganizationalUnit_DN Distinguished name of the OU that you want to add. If omitted will be taken from standard input (stdin). -desc Description of the OU. -s Server to connect to (Default=the domain controller in the logon domain.) -d Domain to connect to. -u Username with which the user logs on to a remote server. -p Password (UserName or Domain\UserName or Username@domain.com) -q Quiet, suppress all output. -uc Unicode format. -uco Unicode format for output only. -uci Unicode format for input only.
Add an OU AcmeCo to the domain SS64.com:
C:\> dsadd ou ou=AcmeCo,dc=ss64,dc=com
"CN=Dev-India,OU=Distribution Groups,DC=corp,DC=ss64,DC=com"
“Originality is going back to origins” ~ Antoni Gaudi
DSAdd - Add object.
DSMod - Modify object.
DSQuery - Search for objects.
DSGet - Display object.
DSMove - Move object.
DSRM - Delete object.
PowerShell: New-adOrganizationalUnit - Create a new AD OU.