Dynamic Distribution Group - duplicate entries in Recipient Filter (Exchange Server 2010 SP3)

Hi, I have DDG in my environment called Everyone - it contains all users with Exchange mailboxes. There is a need to exclude one mailbox from this DDG.

Get-DynamicDistributionGroup -Identity everyone | Select-Object RecipientFilter command returns:

((RecipientType -eq 'UserMailbox') -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'C
AS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValu
e -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))

But after I run the following command (the same filter as before with addition of mailbox I want to exclude from DDG):

Set-DynamicDistributionGroup -Identity everyone -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(Name -like 'experience*')))}

now Get-DynamicDistributionGroup -Identity everyone | Select-Object RecipientFilter command returns:

((((((((((((((RecipientType -eq 'UserMailbox') -and (-not(Name -like 'SystemMailbox{*')))) -and (-not(Name -like 'CAS_{*')))) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')))) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')))) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))) -and (-not(Name -like 'experience*')))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))

I went over Preview and mailbox was excluded from DDG but what is wrong with RecipientFilter syntax above - too many parenthesis and duplicate entries????

June 28th, 2015 2:53pm

Hi BoxiKG,

Thank you for your question.

By your description, we could redirect this case by the following link:

https://social.technet.microsoft.com/Forums/exchange/en-us/home?forum=exchangesvrdevelopment

If there are any questions regarding this issue, please be free to let me know.

Best Regard,

Free Windows Admin Tool Kit Click here and download it now
June 29th, 2015 3:22am

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

Other recent topics Other recent topics