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
MVP
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
Duh.... didn’t think you could reference name field but been a long time since messing with dynamic groups. Would make sense that you should be able to use any ad field.