Upgrade your default Email Address Policies in Exchange 2007

ERROR
”Unable to edit the specified E-mail address policy. E-mail address policies created with legacy versions of Exchange must be upgraded using the 'Set-EmailAddressPolicy' task, with the Exchange 2007 Recipient Filter specified."

RESOLUTION
To upgrade the five default Address list have well-known filters, I can simply provide the Exchange 2007 equivalent of these well-known filters to do the upgrades. Here are the one-liners:

Set-AddressList "All Users" -IncludedRecipients MailboxUsers

Set-AddressList "All Groups" -IncludedRecipients MailGroups

Set-AddressList "All Contacts" -IncludedRecipients MailContacts

And the last two that are slightly different, since there are not "precanned" filters for public folder recipient type:

Set-AddressList "Public Folders" -RecipientFilter { RecipientType -eq 'PublicFolder' }

Set-GlobalAddressList "Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}

MORE INFO
http://technet.microsoft.com/en-us/library/cc164366(EXCHG.80).aspx

Comentarios