[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

Exchange Distribution Groups

I just started using ASP to pull Active Directory info to web interfaces.  I recently ran across some code that pulled users and groups.  However, I noticed that it only pulls Security groups and will not pull Distribution groups.  Can anyone help with pulling the Distribution groups.  I have seen a lot of LDAP code that is suppose to do so, but I don't want to do a bunch of recoding unless there is no other option.  Takes away from my scooter riding time... :-)
0
cisdoz2
Asked:
cisdoz2
  • 2
1 Solution
 
aa230002Commented:
Use the groupType attribute to identify a Distribution Group from Active Directory.
groupType = 8 (Universal Distribution Group)
groupType: -2147483646 (Global Security Group)

Thanks,
Amit Aggarwal.
0
 
cisdoz2Author Commented:
Can you give me an example of this in ASP code?
0
 
aa230002Commented:
I dont know ASP, but can give you an example of CSVDE with LDAP query.

CSVDE -f FAX.csv -d "dc=microsoft,dc=com" -s <dc_name> -r "(&(objectClass=*)(groupType=8))" -l "GivenName,name,displayName,mail,l,co,company"

Please customize the query according to your requirement. You can run this from the command line and CSVDE is available with Windows Support Tools.

Thanks,
Amit Aggarwal.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now