Email Address Policy and Address List Filter UpgradesThis is a page to store any custom LDAP filters and their equivalent Exchange 2007 OPATH Powershell filters for EAP or AL. While there are nearly infinite possible filters you might have in LDAP, there are probably a couple of primary themes that might help others with their LDAP->OPATH conversions. Please feel free to post your examples on this page. Here's the technet reference of Exchange 2007 RTM Filterable Properties.
Users in a specific AG + all groups that start with a particular string:
LDAP:
(&(&(|(&(&(objectCategory=user)(msExchHomeServerName=/o=ORG/ou=SITE/cn=Configuration/cn=Servers/cn=*)))(&(|(objectCategory=group)(objectCategory=msExchDynamicDistributionList))(displayname=IT*)))))
OPATH:
(ServerLegacyDN -like "/o=ORG/ou=SITE/cn=Configuration/cn=Servers/cn=*" ) -or ( ( RecipientType -eq "MailEnabledUniversalDistributionGroup" –or RecipientType -eq "MailEnabledUniversalSecurityGroup" -or RecipientType -eq "MailEnabledNonUniversalGroup" -or RecipientType -eq "DynamicDL") -and ( DisplayName -like "IT*" ) )
For examples see the New-EmailAddressPolicy page.
|