Active Directory Query / Filter (LDAP) for Exchange Distribution Lists

I am looking for an LDAP query that will retrieve Exchange distribution lists.

If I make it simple (objectClass=Group), I get too many groups, most of them are not useful.

+5
source share
1 answer

I would use the groupType attribute to define distribution lists. Here you can find information to find out the difference between security / distribution.

And the filter might look like this:

(&(objectClass=group)(!(groupType:1.2.840.113556.1.4.803:=2147483648)))

EDIT alternatively, you can check groups that have email addresses, smth like:

(&(objectClass=group)(proxyAddresses=*))
+9
source

All Articles