jburnerducks
asked on
How do you exclude a specific email address from a dynamic distribution group in exchange 2010?
Hello,
I'm trying to find the exact command to use in powershell to remove a user from a dynamic distribution list called "Everybody." I found some examples on the web but I must be doing something wrong because it doesn't work. Can someone point me in the right direction? Thanks in advance.
I'm trying to find the exact command to use in powershell to remove a user from a dynamic distribution list called "Everybody." I found some examples on the web but I must be doing something wrong because it doesn't work. Can someone point me in the right direction? Thanks in advance.
Hi,
You can also refer the below article
http://social.technet.microsoft.com/Forums/office/en-US/71d8f697-7fe4-4f52-96c0-482060585604/excluding-specific-email-addresses-from-a-dynamic-distribution-group?forum=exchangesvrgenerallegacy
Thanks,
Andy
You can also refer the below article
http://social.technet.microsoft.com/Forums/office/en-US/71d8f697-7fe4-4f52-96c0-482060585604/excluding-specific-email-addresses-from-a-dynamic-distribution-group?forum=exchangesvrgenerallegacy
Thanks,
Andy
ASKER
Thanks Andy,
What's the proper syntax if I wanted to add 3 users at a time? Would it be: Set-DynamicDistributionGro up -Identity MadeUpName -RecipientFilter {((RecipientType -eq 'UserMailbox') -and -not(Name -like 'Journal User1')) -and -not(Name -like 'Journal User2')) -and -not(Name -like 'Journal User3'))} ?
I ask that because I tried to add one name at a time, but each time I typed the command it overwrote the filter.
What's the proper syntax if I wanted to add 3 users at a time? Would it be: Set-DynamicDistributionGro
I ask that because I tried to add one name at a time, but each time I typed the command it overwrote the filter.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Andy, that worked!
You can exclude a specific user from a DD group with the Set-DynamicDistributionGro
Example: Set-DynamicDistributionGro
Note that this example is just with recipient type = userMailbox. You can get the current recipientFilter of your DD group and modify it however from powershell.
(get-DynamicDistributionGr
Thanks,