dsget-contact

DSGET contact

Display contact(s) from active directory.

Syntax DSGET Contact ContactDN [-dn] [-fn] [-mi] [-ln] [-display] [-desc] [-office] [-tel] [-email] [-hometel] [-pager] [-mobile] [-fax] [-iptel] [-title] [-dept] [-company] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-c] [-q] [-l] [{-uc | -uco | -uci}] Key ContactDN Distinguished Name of the contact to view. -dn Display the distinguished name -fn Display the first names -mi Display the middle initials -ln Display the last names -display Display the display names -desc Display the descriptions -office Display the office locations -tel Display the telephone numbers -email Display the e-mail addresses -hometel Display the home telephone numbers -pager Display the pager numbers -mobile Display the mobile phone numbers -fax Display the fax numbers -iptel Display the IP phone number of the contact. -title Display the titles -dept Display the departments -company Display the company information -s Server to connect to (Default=the domain controller in the logon domain.) -d Domain to connect to -u Username with which the user logs on to a remote server. -p Password (UserName or Domain\UserName or Username@domain.com) -c Report errors, but continue with the next object after any error (when you specify multiple objects) by default dsget will exit when the first error occurs. -q Quiet, suppress all output -l Display entries in a list format. By default, dsget outputs a table format. -uc Unicode format -uco Unicode format for output only -uci Unicode format for input only

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

Example

Display the description and mobile phone number for contact Andy Kaufman:

C:\> dsget contact "CN=Andy Kaufman,OU=Users,OU=AcmeCo,DC=ss64,DC=Com" -desc -mobile

“I just want real reactions. I want people to laugh from the gut, be sad from the gut-or get angry from the gut” - Andy Kaufman

Related commands:

DSAdd - Add object

DSGet - Display object

DSMod - Modify object

DSMove - Move object

DSQuery - Search for objects

DSRM - Delete object