DSADD OU (installable option either via RSAT /AD DS or adminpack.msi)

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

Example

Add an OU AcmeCo to the domain SS64.com:

C:\> dsadd ou cn=AcmeCo,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 SS64.com 1999-2014
Some rights reserved