Home NT Commands
NT Syntax

DSADD.exe (Windows XP)

Add active directory object.

Syntax
   DSADD computer <Computer_DN> <options>
   DSADD contact <ContactDN> <options>
   DSADD group  <GroupDN>  <options>
   DSADD ou     <OU_DN>    <organizational_unit_options>
   DSADD user   <User_DN> <user_options>
Key DN=Distinguished Name(s) OU=Organisational Unit Pretty much all the attributes can be modified (Name, display name, tel number etc) run the command with /? for a full list e.g DSADD USER /?

Commas
Commas must be escaped with the backslash \ character
(other than separators in distinguished names)
e.g.
"CN=Company\, Inc.,CN=Users,DC=ss64,DC=com"

Backslashes
Backslashes used in distinguished names must be escaped with a backslash
(for example,
"CN=Sales\\ Latin America,OU=Distribution Lists,DC=ss64,DC=com").

If any value contains spaces, use quotation marks:

   "CN=John Smith,CN=Users,DC=SS64,DC=com"

Special Tokens
The token $username$ (case insensitive) may be used to place the SAM account name.
Entering * as a password will cause DSADD to prompt for the new password.

Adding multiple Objects
For any DS command you can enter multiple values separated by spaces.
e.g. to add several user accounts at once just supply a list of the distinguished names separated with spaces.

It is also possible to store multiple values in a text file and redirect into DSADD.

"For a list of all the ways technology has failed to improve the quality of life, press three". - Alice Kahn

Related commands:
dsmod - modify object
dsget - display object
dsmove - move object
dsquery - find object
dsrm - delete object
CSVDE - Import or export AD info in CSV format.
LDIFDE - Edit AD Objects, extend schema, import or export AD information.

Equivalent Linux BASH commands:

ldapmodify - Modify Lightweight Directory Access Protocol



Simon Sheppard
SS64.com