Forum Discussion
oskarkuus
Jul 07, 2024Brass Contributor
Set exchange policy with filter?
I am trying to figure out how to run a command to create a exchange online emailadresspolicy. New-EmailAddressPolicy -Name Groups1 -IncludeUnifiedGroupRecipients -EnabledEmailAddressTemplates "SM...
Jul 07, 2024
Use the New-EmailAddressPolicy cmdlet to create email address policies. In Exchange Online, email address policies are available only for Microsoft 365 Groups.
https://learn.microsoft.com/en-us/powershell/module/exchange/new-emailaddresspolicy?view=exchange-ps
https://learn.microsoft.com/en-us/powershell/module/exchange/new-emailaddresspolicy?view=exchange-ps
oskarkuus
Jul 07, 2024Brass Contributor
I dont understand. Do you mean that it is not possible to use filtering in exchange online?
So there is no way to trigger the policy based on a groups mailNickname value then?
So there is no way to trigger the policy based on a groups mailNickname value then?
- Aug 07, 2024Any update?
- Jul 15, 2024Did that answer your question?
- Jul 07, 2024It's not possible in Exchange Online. But, when in Hybrid, you can use the OnPrem Exchange server. Alternatively, you can use scripts like this one https://evotec.xyz/hub/scripts/office365-addbulkemailaddressses-ps1/