Home All Groups Group Topic Archive Search About

Exchange 2007, obtaining mailbox list without cmdlets?

Author
11 May 2009 8:41 PM
snae
Hi,

I'm using .NET and would like to be able to retrieve a list of
mailboxes (actually just a list of email addresses) from an Exchange
2007 server.  This is possible using the Get-Mailbox cmdlet, but this
produces a dependency on the Exchange Management binaries.  I would
like to be able to obtain a list of mailbox addresses from an Exchange
server without using cmdlets and thus avoiding this dependency.  From
what I can see this functionality is not available using the Exchange
web services.  Is it available by any other means?

Thanks in advance,

Andy

Author
11 May 2009 10:29 PM
Glen Scales [MVP]
You can just query Active Directory directly via LDAP eg using
System.DirectoryService see something like
www.infinitec.de/post/2005/02/How-to-get-the-Global-Address-List-programatically.aspx
..

Cheers
Glen

Show quoteHide quote
"snae" <snae.***@gmail.com> wrote in message
news:578b3c04-971c-41d9-96c3-8f973dd84e73@r34g2000vba.googlegroups.com...
> Hi,
>
> I'm using .NET and would like to be able to retrieve a list of
> mailboxes (actually just a list of email addresses) from an Exchange
> 2007 server.  This is possible using the Get-Mailbox cmdlet, but this
> produces a dependency on the Exchange Management binaries.  I would
> like to be able to obtain a list of mailbox addresses from an Exchange
> server without using cmdlets and thus avoiding this dependency.  From
> what I can see this functionality is not available using the Exchange
> web services.  Is it available by any other means?
>
> Thanks in advance,
>
> Andy
Are all your drivers up to date? click for free checkup

Author
12 May 2009 6:55 AM
snae
On May 12, 12:29 am, "Glen Scales [MVP]" <gsca***@outlookexchange.com>
wrote:
> You can just query Active Directory directly via LDAP eg using
> System.DirectoryService see something likewww.infinitec.de/post/2005/02/How-to-get-the-Global-Address-List-prog...
> .
>

Thanks very much.  The only thing is, I would like my configuration to
be as simple as possible and if possible for it to point only at the
Exchange server, wheras with this approach there could potentially be
two bits of configuration required (for AD and for Exchange).  Its not
such a huge problem, so if this is the only way to get a list of
mailboxes (without cmdlets), then I'll go down this route.

I know the mailbox list is not stored within Exchange, but it does
seem odd to me that there isnt a means to do this directly via an API
with Exchange.  Its the same with other mail systems I have worked
with too where its the directory that must be queried.

Andy

Show quoteHide quote
> Cheers
> Glen
>
> "snae" <snae.***@gmail.com> wrote in message
>
> news:578b3c04-971c-41d9-96c3-8f973dd84e73@r34g2000vba.googlegroups.com...
>
>
>
> > Hi,
>
> > I'm using .NET and would like to be able to retrieve a list of
> > mailboxes (actually just a list of email addresses) from an Exchange
> > 2007 server.  This is possible using the Get-Mailbox cmdlet, but this
> > produces a dependency on the Exchange Management binaries.  I would
> > like to be able to obtain a list of mailbox addresses from an Exchange
> > server without using cmdlets and thus avoiding this dependency.  From
> > what I can see this functionality is not available using the Exchange
> > web services.  Is it available by any other means?
>
> > Thanks in advance,
>
> > Andy- Hide quoted text -
>
> - Show quoted text -

Bookmark and Share