Upgrade Exchange 2013 Distribution Groups from Exchange 2007

Upgrading Distribution groups from Exchange 2007 to Exchange 2013 has 3 steps:  Distribution groups must be upgraded, distribution group owners must be set, and the homeMTA property needs to be cleared.  The powershell code below shows how this is done:

#Forces Upgrade of all distribution groups
Get-DistributionGroup –resultsize unlimited | Set-DistributionGroup –ForceUpgrade
#Set All Distribution Group Owners  (Required for Exchange 2010/2013 if missing causes errors)
#Change the owners to the desired domain accounts replace USER@DOMAIN.COM
Get-DistributionGroup -ResultSize Unlimited | Set-DistributionGroup -BypassSecurityGroupManagerCheck -ManagedBy 'USER@DOMAIN.COM’,’USER2@DOMAIN.COM’

#Clear homeMTA property for a single distribution group (If any distribution groups have this property set it can force a specific server to send distribution group messages)
Get-DistributionGroup -ResultSize Unlimited | Set-ADGroup $_.samAccountName -Clear homeMTA

 

2 thoughts on “Upgrade Exchange 2013 Distribution Groups from Exchange 2007

  1. Pingback: Exchange 2016 Migration – Finishing Touches – Post Migration Tasks – blog – Alexander Ollischer | Citrix | Microsoft

  2. Alexander Ollischer

    I found that you have to use the following command in order to clear the homeMTA attribute in order to not throw an error stating “Cannot validate argument on parameter ‘Identity’. The argument is null”:

    Get-DistributionGroup | foreach { Set-ADGroup -Identity $_.samAccountName -Clear homeMTA }

    Kind regards
    Alexander Ollischer

Leave a Reply

%d bloggers like this: