Filter Users for Group using a wildcard - Exchange Online RRS feed

  • Question

  • I'm trying to create a Dynamic group filter using a number from the email address, all of our users  have a year before the email address for example: and , this will be the year they joined the organisation

    the first filter i tried:

    New-DynamicDistributionGroup -Name "Intake2010" -RecipientFilter {(RecipientType -eq 'MailContact' -and EmailAddresses -like '10*')} -primarysmtp "" 

    the group creates, but is empty, I have also tried adding SMTP to the filter, for example:

    New-DynamicDistributionGroup -Name "Intake2010" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (EmailAddresses -like 'SMTP:10*')} -primarysmtp "" 

    again the group creates, but is empty (no users within) 

    I have multiple domains ( over 300) and would rather not have to add custom attributes to these users
    Thursday, July 16, 2015 12:22 PM


All replies