Modify an OU in active directory.
DSMod OU OrganizationalUnit_DN [-desc Description] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-c] [-q] [{-uc | -uco | -uci}] Key OrganizationalUnit_DN Distinguished name of the OU that you want to modify. 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) -c Continue with the next object after any error (when you specify multiple target objects) by default dsmod will exit when the first error occurs. -q Quiet, suppress all output -uc Unicode format -uco Unicode format for output only -uci Unicode format for input only
Examples
Change the description of two OUs at once:
C:\> dsmod ou "OU=Italy,DC=ss64,DC=Com" "OU=Germany,DC=ss64,DC=Com" -desc "Some new descriptive text"
“The trouble with organizing a thing is that pretty soon folks get to paying more attention to the organization than to what they're organized for” ~ Laura Ingalls Wilder
Related:
DSAdd - Add object.
DSMod - Modify object.
DSGet - Display object.
DSMove - Move object.
DSQuery - Search for objects.
DSRM - Delete object.
PowerShell: Set-adOrganizationalUnit - Modify an AD OU.
Equivalent bash commands (Linux): ldapmodify - Modify Lightweight Directory Access Protocol.