locked
Modify existing Dynamic DL filter RRS feed

  • Question

  • Hi Guys,

    Can someone help how can I modify this filter in existing DDL?

    ((((((((((CustomAttribute15 -eq 'ATT') -and (City -eq 'Bangalore'))) -and (CountryOrRegion -eq 'India'))) -and (((RecipientTypeDetails -eq 'UserMailbox') -or (RecipientTypeDetails -eq 'RemoteUserMailbox'))))) -or (Alias -eq 'DDL_IND'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))

    I need to ADD -not CustomAttribute7 -eq 'TERMED'

    Thanks!
    Uddan

    • Moved by Bill_Stewart Tuesday, November 7, 2017 9:24 PM Abandoned
    Wednesday, September 6, 2017 8:06 AM

Answers

  • Are you looking for how to set it or just the filter? Filter below

    ((((((((((CustomAttribute15 -eq 'ATT') -and (CustomAttribute7 -ne 'TERMED') -and (City -eq 'Bangalore'))) -and (CountryOrRegion -eq 'India'))) -and (((RecipientTypeDetails -eq 'UserMailbox') -or (RecipientTypeDetails -eq 'RemoteUserMailbox'))))) -or (Alias -eq 'DDL_IND'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))


    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.

    • Marked as answer by Uddan Thursday, January 18, 2018 12:57 AM
    Wednesday, September 6, 2017 10:07 AM
  • if you want to modify an existing DDL use the exchange shell

    https://social.technet.microsoft.com/Forums/exchange/en-US/cdd98de6-550d-4821-9ca3-9496c8cf18aa/edit-existing-dynamic-distribution-group?forum=exchangesvrgenerallegacy

    • Marked as answer by Uddan Thursday, January 18, 2018 12:56 AM
    Thursday, September 7, 2017 7:25 AM
  • OK, then you can use the below, just pop in the identity of the group:

    set-DynamicDistributionGroup -Identity "Identity of group" -RecipientFilter {((((((((((CustomAttribute15 -eq 'ATT') -and (CustomAttribute7 -ne 'TERMED') -and (City -eq 'Bangalore'))) -and (CountryOrRegion -eq 'India'))) -and (((RecipientTypeDetails -eq 'UserMailbox') -or (RecipientTypeDetails -eq 'RemoteUserMailbox'))))) -or (Alias -eq 'DDL_IND'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))}



    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.

    • Marked as answer by Uddan Thursday, January 18, 2018 12:56 AM
    Thursday, September 7, 2017 8:39 AM

All replies

  • Are you looking for how to set it or just the filter? Filter below

    ((((((((((CustomAttribute15 -eq 'ATT') -and (CustomAttribute7 -ne 'TERMED') -and (City -eq 'Bangalore'))) -and (CountryOrRegion -eq 'India'))) -and (((RecipientTypeDetails -eq 'UserMailbox') -or (RecipientTypeDetails -eq 'RemoteUserMailbox'))))) -or (Alias -eq 'DDL_IND'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))


    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.

    • Marked as answer by Uddan Thursday, January 18, 2018 12:57 AM
    Wednesday, September 6, 2017 10:07 AM
  • Thanks Seanmcavinue,

    I'm looking to set the filter.

    BR,
    Uddan


    Wednesday, September 6, 2017 11:49 PM
  • if you want to modify an existing DDL use the exchange shell

    https://social.technet.microsoft.com/Forums/exchange/en-US/cdd98de6-550d-4821-9ca3-9496c8cf18aa/edit-existing-dynamic-distribution-group?forum=exchangesvrgenerallegacy

    • Marked as answer by Uddan Thursday, January 18, 2018 12:56 AM
    Thursday, September 7, 2017 7:25 AM
  • OK, then you can use the below, just pop in the identity of the group:

    set-DynamicDistributionGroup -Identity "Identity of group" -RecipientFilter {((((((((((CustomAttribute15 -eq 'ATT') -and (CustomAttribute7 -ne 'TERMED') -and (City -eq 'Bangalore'))) -and (CountryOrRegion -eq 'India'))) -and (((RecipientTypeDetails -eq 'UserMailbox') -or (RecipientTypeDetails -eq 'RemoteUserMailbox'))))) -or (Alias -eq 'DDL_IND'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))}



    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.

    • Marked as answer by Uddan Thursday, January 18, 2018 12:56 AM
    Thursday, September 7, 2017 8:39 AM