Dymanic Distribusion Groups with OR clause.

I have an Dynamic Distribution Group based on office attribute, but I got thrown a curve ball this morning and need to add a single recipient to each of these Dynamic groups.  
I was thinking that there was an OR clause, but in EMC does not look like that.  From Powershell I can see that there are multiple -and clauses .  

Is it possible to build a Dynamic DG with -or and -and?
LVL 26
yo_beeDirector of Information TechnologyAsked:
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.

Jian An LimSolutions ArchitectCommented:
sure

my dynamic DG looks like this,

((((RecipientType -eq 'UserMailbox') -and (Office -eq 'Melbourne'))) -and
(-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and
(-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and
(-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'AuxAuditLogMailbox')))
1
yo_beeDirector of Information TechnologyAuthor Commented:
But I do see any -or clauses.
0
Jian An LimSolutions ArchitectCommented:
why not just build one up?
it is just a recipient filter. you can set whatever filter you want and i can reassure i have some that use OR.
0
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

yo_beeDirector of Information TechnologyAuthor Commented:
The question is How
0
Jian An LimSolutions ArchitectCommented:
cool, do you have specifc requirement that i can help?
0
yo_beeDirector of Information TechnologyAuthor Commented:
Office location -or custom attribute.
0
Jian An LimSolutions ArchitectCommented:
New-DynamicDistributionGroup -Name "DDGTest" -RecipientFilter {((Office -eq 'Melbourne') -or (customattribute2 -like 'something*'))}

$g= get-dynamicdistributiongroup "DDGTest"
Get-Recipient -RecipientPreviewFilter $g.RecipientFilter


check the filterable item from here https://technet.microsoft.com/en-us/library/bb738157(v=exchg.150).aspx
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
yo_beeDirector of Information TechnologyAuthor Commented:
Thank you.

That worked perfectly
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
Powershell

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.