Полезное‎ > ‎CMD‎ > ‎dsadd‎ > ‎

dsadd-ou

DSADD OU

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

DS* commands are available on networked machines with the server role A.D. Domain Services installed, Domain Controllers (or for XP users: XP Professional).

To also make the computer a member of a specific group (for applying group policy), use the -memberof option.

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

Comments