DSADD Contact (installable option via RSAT /AD DS)

Add a contact to active directory.

      DSADD Contact ContactDN [Options] [-q] [{-uc | -uco | -uci}]

   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.


   [-fn FirstName] [-mi Initial] [-ln LastName] [-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 | *}]


C:\> dsadd contact "cn=fred,ou=staff,dc=ss64,dc=com"

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

Related commands

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.

Copyright © 1999-2024 SS64.com
Some rights reserved