DSADD computer (Windows XP/2003/2008)

Add a computer object to active directory.

Syntax
      DSADD computer Computer_DN [-samid SAMName] options  [-q] [{-uc | -uco | -uci}]
Key Computer_DN Distinguished name of the computer that you want to add. If omitted will be taken from standard input (stdin) SAMName Unique SAM account name for this computer (By default, the cn attribute from the ComputerDN.) -q Quiet, suppress all output -uc Unicode format -uco Unicode format for output only -uci Unicode format for input only Options [-desc Description] [-loc Location] [-memberof GroupDN ...] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}]

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

Example

dsadd computer cn=pc64,cn=computers,dc=ss64,dc=com

“The best weapon against an enemy is another enemy" - Friedrich Nietzsche

Related commands:
dsadd - Add other objects
dsmod - modify object
dsget - display object
dsmove - move object
dsquery - find object
dsrm - delete object



Back to the Top

Simon Sheppard
SS64.com