exclude a group of users from an exchange 2010 dynamic distribution group based on company name

I need to exclude a group of users from a current dynamic distribution group
the dynamic group is based on company name
I know I could go into each user and change the company name to I get the email sent out but im after a better method
exchange 2010
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.

imkotteesSenior Messaging EngineerCommented:
Hi,

If the DDL was created based on the company name then you need to edit those users whom you want to exclude. Else you need to create a new DDL.
0
Alexei KuznetsovMicrosoft Outlook MVPCommented:
Of course, you don't need to create a new DDG. If you don't want to edit Company Name for that particular users, you can use Custom Attributes. For instance, you can add "Custom Attribute 1 equals Value" Condition to your Dynamic Distribution Group, set Value as "Include" and then set Custom Attrubute 1's value to "Include" for the users you want to retain in this DDG (all other user will be excluded automatically). Buy the way, you can use multiple selection in Exchange Management Console or use PowerShell to simplify and speed-up the process.
0
dougdogAuthor Commented:
i only have 15 users to exclude
how can i easily do this
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Alexei KuznetsovMicrosoft Outlook MVPCommented:
Then you'd want to do the opposite: set Custom Attribute 1 for that 15 users to "Exclude" value and then edit the DDG using Exchange Management Shell like this:
Set-DynamicDistributionGroup -Identity "My DDG" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and -not(CustomAttribute1 -like 'Exclude'))}

Open in new window

Where "My DDG" is the name of your Dynamic Distribution Group.
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
dougdogAuthor Commented:
ok I will try it out in morn
0
dougdogAuthor Commented:
many thanks
0
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.