Nov 01 2018
02:43 PM
- last edited on
Feb 01 2023
11:55 AM
by
TechCommunityAP
Nov 01 2018
02:43 PM
- last edited on
Feb 01 2023
11:55 AM
by
TechCommunityAP
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 01 2018 07:14 PM
Nov 02 2018 01:05 AM
SolutionOr, 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 04:48 AM
Nov 13 2018 09:06 AM
This doesn't work but thank you for your suggestion
Nov 13 2018 09:28 AM
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.
Mar 27 2024 01:37 AM - edited Mar 27 2024 01:39 AM
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 07:57 AM
Nov 02 2018 01:05 AM
SolutionOr, 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')