What's Wrong With My Query Based Distribution Group query definition?
Good Morning! I hope this is the best forum for creating Query Based Distribution Groups on Exchange 2007. If it is not please let me know. I'm running into an odd error where some of the Queries I'm using will return correct results on the Preview of the Recipients Filter in the Exchange Management Console--but when an email is sent out using that query, no email is sent. This is only a problem on SOME of our QB DGs, others work just fine it seems. An example of a query that works: ((RecipientType -eq 'UserMailbox' -and Department -like '*University Networking Systems and Services*') -and -not(Name -like 'SystemMailbox{*') -and -not(Name -like 'CAS_{*')) An example of two different queries that don't work: (((RecipientType -eq 'UserMailbox' -and -not(Description -like '*Student*')) -and (Department -like '*Education and Human Sciences Student Services*' -or Notes -like '*Education and Human Sciences Student Services*')) -and -not(Name -like 'SystemMailbox{*') -and -not(Name -like 'CAS_{*')) (((RecipientType -eq 'UserMailbox' -and -not(Description -like '*Student*')) -and (Department -like '*Instructional Design Services*' -or Notes -like '*Instructional Design Services*')) -and -not(Name -like 'SystemMailbox{*') -and -not(Name -like 'CAS_{*')) As you can see, the different is that we're trying to filter out any recipients that have Student in their title (This so departments can mailed their full time workers, and not Student employees.) The query works with the preview, but not when actually sending. Could you tell me why it doesn't work, or suggest a variation of the script that would accomplish the same? Am I writing the script wrong? Thank you for your time.
October 8th, 2010 10:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics