The Exchange 2007 Wiki

Email Address Policy and Address List Filter Upgrades

This 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.

Site

Changes
Index
Search

 

User

 

Log In
Register

 
 

Last Modified 2/22/08 12:49 PM