Add a group to active directory.
Syntax
DSADD Group GroupDN [-secgrp {yes | no}] [-scope {l | g | u}] [-samid SAMName]
[-desc Description] [-memberof Group ...] [-members Member ...]
[{-s Server | -d Domain}] [-u UserName] [-p {Password | *}]
[-q] [{-uc | -uco | -uci}]
Key
Group_DN Distinguished name of the group that you want to add.
If omitted will be taken from standard input (stdin)
-secgrp A security group (yes) or a distribution group (no) default=Yes.
-scope Domain local (l), global (g), or universal (u) default=g.
SAMName Unique SAM account name for this group
(By default, the dn attribute from the GroupDN.)
-memberof Add this new group to other groups.
-members Members to add to this new group.
-s Server Connect to a remote server/domain, default=%logonserver% domain controller.
-q Quiet, suppress all output
-uc Unicode format
-uco Unicode format for output only
-uci Unicode format for input only
Examples
C:\> dsadd group cn=Beatles,cn=Musicians,dc=ss64,dc=com
C:\> dsadd group "cn=Rolling Stones,cn=Musicians,dc=ss64,dc=com"
“If he is a man of honor in one thing, he is that in all things” ~ Raymond Chandler
Related:
DSAdd - Add object.
DSMod - Modify object.
DSGet - Display object.
DSMove - Move object.
DSQuery - Search for objects.
DSRM - Delete object.
PowerShell: New-adGroup - Create an AD group.
Equivalent bash commands (Linux): groupadd - Add group.