Can someone please help with DDG creation?

I'm trying to create different Dynamic Distribution Lists:
DDG #1
Company like "Corporate"
Office equal US - Pittsburgh

DDG #2
Company like "Corporate"
I want to this DDG to scan against all 3 domains we have.  Is that possible or I have to create 3 separate DDGs for each domain (apac, amer, emea) and then bundle each DDG into 1 new regular DL?

Trying the following:
new-dynamicdistributiongroup -name "Everyone@CorporatePittsburgh" -alias "EveryoneatCorporatePittsburgh" -OrganizationalUnit amer.thermo.com/thermoUsers -recipientfilter {((recipienttype -eq "usermailbox") -and (company -like "Corporate") -and (physicalDeliveryOfficeName -eq "US - Pittsburgh, PA"))}

Get the following Error for DDG #1:
New-DynamicDistributionGroup : Cannot bind parameter 'RecipientFilter' to the t
arget. Exception setting "RecipientFilter": ""physicalDeliveryOfficeName" is no
t a recognized filterable property. For a complete list of filterable propertie
s see the command help.
"((recipienttype -eq "usermailbox") -and (company -like "Corporate") -and (phys
icalDeliveryOfficeName -eq "US - Pittsburgh, PA"))" at position 75."
At line:1 char:170
+ new-dynamicdistributiongroup -name "Everyone@CorporatePittsburgh" -alias "Eve
ryoneatCorporatePittsburgh" -OrganizationalUnit amer.thermo.com/thermoUsers -re
cipientfilter  <<<< {((recipienttype -eq "usermailbox") -and (company -like "Co
rporate") -and (physicalDeliveryOfficeName -eq "US - Pittsburgh, PA"))}
Admin_StoogeAsked:
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.

MadParCommented:
You must replace LDAPDisplayName of Property (in your case physicalDeliveryOfficeName) to OPATH Name (in your case Office).
You cann't create single DDG for three domains :(
0
Admin_StoogeAuthor Commented:
Thanks
new-dynamicdistributiongroup -name "Everyone@CorporatePittsburgh" -alias "EveryoneatCorporatePittsburgh" -OrganizationalUnit  amer.thermo.com/thermoUsers -recipientfilter {((recipienttype -eq "usermailbox") -and (company -like "Corporate") -and (Office -eq "US - Pittsburgh, PA"))}

Preview shows 0 Members.  The Company field for the AD Objects shows items like "Corporate Information Technology" or "Corporate Human Resources" so I'm hoping to target all users with the word "Corporate" within the Company field and have Office listed as "US - Pittsburgh, PA"
0
MadParCommented:
Try "Corporate*"
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
Admin_StoogeAuthor Commented:
Try "Corporate" where?  I have it already listed:
(company -like "Corporate"
0
Adam BrownSr Solutions ArchitectCommented:
Note the * in corporate. Using company -like "corporate" will only match if the exact entry in the company field is Corporate. The * allows you use wildcards so it would match anything that starts with corporate when you use company -like "corporate*" additionally, company -like "*corporate*" will match anything with company that has anything before or after that word in the field.
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.