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')
Nov 02, 2018
There isn’t an exclude filter. You can move that person to a different OU and not include that in the OU filter or get fancy with the recipient filter by making use of custom fields or fields that everyone is in but not that person. So if the group is created off city or department you could remove their department or add a space or something to it so it doesn’t match and pick up. But depending if you have some other questions using these fields might not be an option.
Shoga Hailemariam
Nov 13, 2018Copper Contributor
Thank you