At the end of an Exchange 2007 transition you should upgrade the Address List and Global Address List objects to Exchange 2007 OPath format.

In organisations with only the default Email Address Policy, Address Lists, and Global Address List, you can complete the Exchange upgrade with a script instead of running each command manually.
Download the Exchange Transition Script.

Upgrade the default Address List objects to Exchange Server 2007 OPath format using Set-AddressList.

[PS] C:\> Set-AddressList "All Users" -IncludedRecipients MailboxUsers

[PS] C:\> Set-AddressList "All Groups" -IncludedRecipients MailGroups

[PS] C:\> Set-AddressList "All Contacts" -IncludedRecipients MailContacts

[PS] C:\> Set-AddressList "Public Folders" -RecipientFilter { RecipientType -eq 'PublicFolder' }

Upgrade the default Global Address List to Exchange Server 2007 OPath format using Set-GlobalAddressList.

[PS] C:\> Set-GlobalAddressList "Default Global Address List" -RecipientFilter {(
Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or O
bjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistribut
ionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}

If you have any additional custom ALs or GALs you can upgrade them by following the advice at these resources.

About the Author

Paul Cunningham

Paul is a former Microsoft MVP for Office Apps and Services. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server. Paul no longer writes for


  1. AA7797

    Can you please help me with the following conversion of LDAP filter to OPATH?
    I just need the exact syntax:


    Thank you

  2. Tim Latter

    I have Ex2010 and several custom address lists. Why don’t they update with me always forcing this manually? The GAL updates but the custom list don’t unless commanded to do so.

Leave a Reply