Forum Discussion
iwannabfishn
Jan 02, 2024Copper Contributor
Exchange online dynamic distribution group with multiple companies
I have a dynamic distribution group with conditions that it has to be a user mailbox and the company name is "XYZ". I need to update this filter to say it is a user mailbox with company name " XYZ" or "WXYZ". I don't seem to be able to do this through the GUI. I assume I need to use powershell, but I am unsure of the syntax. Do you know what this would look like or if there is a way to do it in the GUI?
Thanks!
- Yes, you will have to use Powershell for that, here's an example:
Set-DynamicDistributionGroup DDG -RecipientFilter {RecipientTypeDetails -eq "UserMailbox" -and ((Company -eq "XYZ") -or (Company -eq "WXYZ"))}