dsmod contact

DSMOD Contact

Modify a contact in active directory.

Syntax DSMOD contact ContactDN [Options] [-c] [-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) -c Continue with the next object after any error (when you specify multiple target objects) by default dsmod will exit when the first error occurs. -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 | *}]

DS* commands are available on networked machines with the server role A.D. Domain Services installed, Domain Controllers (or for XP users: XP Professional).


C:\> set _fred="cn=fred,ou=staff,dc=ss64,dc=com"

C:\> dsmod contact %_fred% -tel "01234 5678"

C:\> set _john="cn=JohnS,cn=users,dc=ss64,dc=com"

C:\> dsmod contact %_fred% %_john% -dept "Warehouse"

“The highest reward for a person's toil is not what they get for it but what they become by it” - John Ruskin

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.

Q322684 - Directory Service Command-Line Tools