Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Add active directory object using DSADD command in XP

How to Add active directory object using DSADD command in 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.


How helpful was this article to you?

Related Articles

article How to Modify active directory object using DSMOND.EXE
Modify active directory object. Syntax ...

(No rating)  3-7-2008    Views: 159   
article How to manually delete a server object from the Active Directory database in case of a bad DCPROMO procedure
Caution: The administrator should also...

(No rating)  4-16-2008    Views: 128   
article How to Use the Directory Service Command-Line Tools to Manage Active Directory Objects in Windows Server 2003
This article describes how to use the Directory...

(No rating)  6-3-2008    Views: 211   

User Comments

Add Comment
No comments have been posted.