exclude a group or ou from an existing exchange 2010 sp3 dynamic distribution group

I have an existing dynamic distribution group for all users
I need to exclude a group of users
im thinking the best way to achieve this would be to try to exclude an ou or group  maybe
anyone any ideas how I could do this?
LVL 1
dougdogAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hello WorldCommented:
Hi,
It depend on the original RecipientFilter used for existing dynamic distribution group, for example:
((RecipientType -eq 'UserMailbox' -and ServerName -eq 'Server1' -and (Name -like 'Help Desk')))

You can use New-DynamicDistributionGroup to new a Dynamic distribution group with below filter:
((RecipientType -eq 'UserMailbox' -and ServerName -eq 'Server1' -and (Name -notlike 'Help Desk')))
More details about Exclude Members from Dynamic Distribution Group, for your reference:
https://social.technet.microsoft.com/Forums/en-US/9ae893d1-7157-453c-b079-38b8dd5976c9/exclude-members-from-dynamic-distribution-group?forum=exchangesvradmin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.