简体   繁体   中英

retrieve details of users from the exchange server

I am using exchange server 2007 (outlook) to configure email accounts..

How can we retrieve the details of the users (mailboxes) present on the exchange server.

This feature is there in outlook. By double clicking the id and checking details.

But, how can this be done programmatically? (using c#)

You can use either the Web Services part of the Exchange SDK or the newer Web Services Managed API to gather info or do just about anything Outlook can do (see this chart for the differences). Both links given should lead you to how-to's , reference pages , and example code to help you get started.


If you want to query the Global Address List (GAL), there are several methods . In OWA (thus, HTTP protocol) there's a command called "galfind" ( example code here ; reference here ). Or you can use ADSI to search the GAL . Or there's CDO or MAPI, but I would steer away from those if possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM