• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 924
  • Last Modified:

How to filterQuery-based Distribution Groups???

I am trying to create filters/exceptions to a Query-based Distribution Group without moving the individual from the OU.  

My Setup:
Windows 2003 Server - Standard
Exchange 2003 Server - Enterprise Edition

Query-based Distribution Group

LDAP filer:
(&(!cn=SystemMailbox{*})(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))) )))

I want to exclude certain mailboxes/email addresses from the Query-based Distribution Group.  Is this possible?  If so, how can I accomplish this?  Thanks in advance for all your help.

1 Solution
Erik PittiCommented:
You can use the Exchange extension attributes (extensionattribute1-extensionattribute15) to set a property on those accounts you wish to include or exclude and edit the LDAP filter to take those fields into account.

Example LDAP filter:

(&(!cn=SystemMailbox{*})(& (mailnickname=*)(objectClass=user)(extensionAttribute15=list1_include))
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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