Henning Krause [MVP]
Guest
|
Posted:
Thu Jan 13, 2005 1:54 pm Post subject:
Re: Enumerating Mailboxes |
|
|
Hello,
that information is not stored in the Exchange Server but in Active
Directory.
To get a list of all users on a particular server, try the following:
1. Get the distinguished name of your mailbox store. That is something like
CN=Erste
Speichergruppe,CN=InformationStore,CN=<Server>,CN=Servers,CN=Erste
administrative Gruppe,CN=Administrative
Groups,CN=<Organization>,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=domain,DC=local
You can get this information via the ADSI Edit or you do a search on the
ActiveDirectory and search for objectClass=msExchExchangeServer. From that
node, do a search with the filter objectClass=msExchPrivateMDB. This will
return a list of all private mailbox stores on that server.
Note that you must search on the configuration partition, not on the domain
partition.
2. You can now use the DirectorySearcher to search for Users with the
property objectClass=user and homeMDB=<distinuishedName of mailbox store>
Et voilą...
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
"Eric" <eric@voiceautomation.com> wrote in message
news:u7VuC0R#EHA.2112@TK2MSFTNGP14.phx.gbl...
| Quote: | Hi,
Is there a way to enumerate all of the mailboxes in a given Exchange
server
using WebDAV? Thanks in advance.
Eric
|
|
|