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')
VasilMichev
Nov 02, 2018MVP
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')
Shoga Hailemariam
Nov 13, 2018Copper Contributor
This doesn't work but thank you for your suggestion
- VasilMichevNov 13, 2018MVP
Works just fine for me, in fact almost all of the DDGs I have include the not clause in some form in their recipient filter. If you share the filter you tried to use, we might be able to give you a pointer.