In the Exchange 2003 era, address lists are based on LDAP statements, and after Exchange 2007, the address list syntax starts with the Opath syntax for querying. So, when we upgrade Exchange 2003 to 2010, we need to upgrade our address list, otherwise we won't be able to open it in 2010.
For the default address list, such as "All Users," "All Groups," "Default Global Address List," And so on, Microsoft directly provides the upgrade command, as follows:
Set-addresslist "All Users" –includedrecipients mailboxusers
Set-addresslist "All groups"-includedrecipients mailgroups
Set-addresslist "All Contacts"-includedrecipients mailcontacts
Set-addresslist "public Folder"-recipientfilter {recipienttype-eq ' Publicfolder '}
Set-globaladdresslist "Default Global Address List"-recipientfilter {alias-ne $null-and (objectclass-eq ' user '-or Objectclass-eq ' cont Act '-or objectclass-eq ' msexchsystemmailbox '-or objectclass-eq ' msexchdynamicdistributionlist '-or objectclass-eq ' gr OUP '-or objectclass-eq ' Publicfolder ')}
In an enterprise environment, in addition to the default address lists, there are often a number of custom address lists that need to be upgraded before they can be used. The following is a detailed description of the upgrade process for a custom address list.
1. Download LDAP to OPATH filter conversion script, address: http://gallery.technet.microsoft.com/scriptcenter/7c04b866-f83d-4b34-98ec-f944811dd48d
2. Move the downloaded script to the scripts directory under the installation directory.
3. Open EMS,CD $exscritps Navigate to Scritps directory, get-addresslist ' Dongguan branch ' | FL name,*filter,exchangeversion confirms the version of the address list. As shown in the following figure, Recipientfilter represents 2010 of the query criteria, Ldaprecipientfilter represents 2003 of the query criteria, and ExchangeVersion represents 00 as 2003.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/Mail/
4. Execute the following command to upgrade the address list, set-addresslist the Address List container path-recipientfilter (. \convertfrom-ldapfilter (get-addresslist address List container path). Ldaprecipientfilter), select Y