DSADD Contact (installable option either via RSAT /AD DS or adminpack.msi)

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 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 | *}]

Examples

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.
DSGet - Display object.
DSMove - Move object.
DSQuery - Search for objects.
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 © SS64.com 1999-2019
Some rights reserved