Can someone please help with DDG creation?

Admin_Stooge
Admin_Stooge used Ask the Experts™
on
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"))}
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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 :(

Author

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"
Commented:
Try "Corporate*"

Author

Commented:
Try "Corporate" where?  I have it already listed:
(company -like "Corporate"
Adam BrownSenior Systems Admin
Top Expert 2010
Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial