Hi,
I'm trying to create a dynamic distribution list based on Zip/Postal Code.... without any success.
Does anyone know what variable the Zip/Postal Code needs when creating the list in Powershell?
Creating the dynamic distribution lists in Powershell is straighforward enough... but to base it on Zip/Postal Code seems to be a challenge.
I've tried various variables, but none of them work...
New-DynamicDistributionGroup -Name "SF-Users" -OrganizationalUnit "OUorContainerNameToCreateGroupIn" -RecipientContainer "yourdomain.com" -RecipientFilter {RecipientType -eq "UserMailbox" -and City -eq "San Francisco"}
This works fine for City as an example..
But I cannot find what I need to replace the 'City' bit with, to get Exchange to work against the Zip/Postal code.... I've tried all possible permutations, alas none work...
Best Regards
Phil Blythe
I'm trying to create a dynamic distribution list based on Zip/Postal Code.... without any success.
Does anyone know what variable the Zip/Postal Code needs when creating the list in Powershell?
Creating the dynamic distribution lists in Powershell is straighforward enough... but to base it on Zip/Postal Code seems to be a challenge.
I've tried various variables, but none of them work...
New-DynamicDistributionGroup -Name "SF-Users" -OrganizationalUnit "OUorContainerNameToCreateGroupIn" -RecipientContainer "yourdomain.com" -RecipientFilter {RecipientType -eq "UserMailbox" -and City -eq "San Francisco"}
This works fine for City as an example..
But I cannot find what I need to replace the 'City' bit with, to get Exchange to work against the Zip/Postal code.... I've tried all possible permutations, alas none work...
Best Regards
Phil Blythe