DSADD OU (installable option via RSAT /AD DS)

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.

Examples

Add an OU 'AcmeCo' to the domain SS64.com:

C:\> dsadd ou ou=AcmeCo,dc=ss64,dc=com

Add an OU 'Dev-India' to the domain corp.SS64.com under 'Distribution Groups':

"CN=Dev-India,OU=Distribution Groups,DC=corp,DC=ss64,DC=com"

“Originality is going back to origins” ~ Antoni Gaudi

Related commands

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.


 
Copyright © 1999-2024 SS64.com
Some rights reserved