Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading memembers from a distribution list using C#

Status
Not open for further replies.

cplsplsprogrammer

Programmer
Apr 18, 2005
42
US
Hello all,

I am working on exchange server 5.5 and have active directory. I wanted to read all the members names and smtp addresses in a distribution list which might have another distribution lists.... so i have to search recursively.

I tried reading from the LDAP but it is not working, as the Adspath of the members of the sub distribution lists is different. The LDAP query i was using is

<LDAP://<path of DL>/cn=****,cn=****,cn=***,ou=***,o=***>;(|(ObjectClass=*));name,mail,givenName,initials,Company,adspath,rdn;subtree"

Can anyone please tell me in which way should i go or give me any resources where i can read all the members of the DL using C# of VB.Net.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top