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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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:

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.
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.
dougdogAuthor Commented:
i only have 15 users to exclude
how can i easily do this
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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.

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
dougdogAuthor Commented:
many thanks
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

From novice to tech pro — start learning today.