Forum Discussion
Shoga Hailemariam
Nov 01, 2018Copper Contributor
Exclude a single E-mail from Dynamic distribution Group
I'm trying to find the exact command to use in PowerShell to remove a user from a dynamic distribution l. Can someone point me in the right direction? Thanks in advance.
- Nov 02, 2018
Or, simply use the *not* clause in your existing recipient filter, no need to add any complexity. Here's an example:
((UsageLocation -eq 'Bulgaria') -and (Name -ne 'vasil'))
or
-not(RecipientTypeDetails -eq 'SharedMailbox')
pabarraille
Mar 27, 2024Copper Contributor
Dear Sir,
I would need to exclude the shared mailboxes to avoid my users to get the same e-mail multiple times.
they have one thing in common : there are all "Unlicensed" users so I thought maybe there could be a rule to be added for this exception ?
Thanks for your help
Mar 27, 2024
Vasil showed in his response how to do it using not and shared Mailbox. See example here:
((UsageLocation -eq 'Bulgaria') -and (Name -ne 'vasil'))
or
-not(RecipientTypeDetails -eq 'SharedMailbox')
((UsageLocation -eq 'Bulgaria') -and (Name -ne 'vasil'))
or
-not(RecipientTypeDetails -eq 'SharedMailbox')