Enumerating Mailboxes
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Enumerating Mailboxes

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Eric
Guest





Posted: Thu Jan 13, 2005 9:00 am    Post subject: Enumerating Mailboxes Reply with quote

Hi,
Is there a way to enumerate all of the mailboxes in a given Exchange server
using WebDAV? Thanks in advance.

Eric

Back to top
Henning Krause [MVP]
Guest





Posted: Thu Jan 13, 2005 1:54 pm    Post subject: Re: Enumerating Mailboxes Reply with quote

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

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB