Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

5.29. Retrieving Properties on User Accounts

Problem

You need to retrieve a list of properties on user accounts.

Solution

Using a graphical user interface

  1. Log on to any machine in your domain that has the Exchange management tools installed.

  2. Open the ADUC snap-in (Users and Computers.msc).

  3. Locate the container that holds the user object whose properties you want to modify.

  4. Select the user object you want to modify, then right-click it and select Properties.

  5. Select the General tab in the Properties dialog box.

  6. Edit properties as desired.

  7. Select other pages in the tabbed dialog box, and edit other properties.

  8. Click OK to close the Properties dialog box.

  9. Repeat steps 4-8 for each additional user whose properties you want to review.

Using a command-line interface

Run the following command:

> ldifde -f c:\outfile.ldf -r "(&(objectClass=User)(objectCategory=Person))"  
-d "cn=<Username>,cn=users, <ForestRootDN>"

This will create an LDIF-format file called outfile.ldf, which you can view with your favorite text editor.

Using VBScript

' This code dumps most of the properties on the selected user object.
'To output to a text file, run 'cscript filename.vbs >outfile.txt'
' ------ SCRIPT CONFIGURATION ------ 
strUser = "<Username>" 'e.g., "cn=jimmy,cn=Users,dc=domain,dc=com" set objUser = GetObject("LDAP://" & strUser) 'declare arrays for multivalue properties arrOtherHomePhone = objUser.GetEx("otherHomePhone") arrOtherPager = objUser.GetEx("otherPager") arrOtherMobile = objUser.GetEx("otherMobile") arrOtherIpPhone ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page