Add a contact to active directory.
Syntax
DSADD Contact ContactDN [Options] [-q] [{-uc | -uco | -uci}]
Key
ContactDN Distinguished name of the contact that you want to add.
If omitted will be taken from standard input (stdin).
-q Quiet, suppress all output.
-uc Unicode format.
-uco Unicode format for output only.
-uci Unicode format for input only.
Options:
[-fn GivenName] [-mi Initial] [-ln Surname] [-display DisplayName]
[-desc Description] [-office Office] [-tel PhoneNumber]
[-email Email] [-hometel HomePhoneNumber] [-pager PagerNumber]
[-mobile CellPhoneNumber] [-fax FaxNumber] [-iptel IPPhoneNumber]
[-title Title] [-dept Department]
[-company Company]
[{-s Server | -d Domain}]
[-u UserName] [-p {Password | *}]
Add the contact fred to Active Directory:
C:\> dsadd contact "cn=fred,ou=staff,dc=ss64,dc=com"
Add the contact JohnS to Active Directory along with GivenName and Surname:
C:\> dsadd contact "cn=JohnS,cn=users,dc=ss64,dc=com" -fn "john" -ln "Smith"
“The friend is the man who knows all about you, and still likes you” ~ Elbert Hubbard
DSAdd - Add object.
DSMod - Modify object. DSMod Contact - Modify a contact in active directory.
DSGet - Display object. DSGet Contact - Display contact(s) from active directory.
DSMove - Move object.
DSQuery - Search for objects. DSQuery Contact - Search for contacts in active directory.
DSRM - Delete object.
CSVDE - Import or export AD info in CSV format.
LDIFDE - Edit AD Objects, extend schema, import or export AD information.
Equivalent bash commands (Linux):
ldapmodify - Modify Lightweight Directory Access Protocol.