>.\Exchange2007MBtoMEU.ps1 error RRS feed

  • Question

  • Hi,

    When I run the script EXCHANGE2007MBtoMEU.ps1 I get the error below for some users but not for all. To fix it I have to manually edit the MEU with the missing info. Any idea why it is happening?


    [PS] C:\mig365>.\Exchange2007MBtoMEU.ps1 FSMO.DOMAIN.INT

    Processing user JBLOGGS@IRELAND.IE
    Calling LookupADInformationFromSMTPAddress
    Adding x500:/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=337af2b7d93844598b9c928d5ee46a95-Joe Bloggs to EmailAddresses
    Adding x500:/o=Public/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=JBloggs to EmailAddresses
    Disabling Mailbox
    Enabling Mailbox

    Name                                     RecipientType
    ----                                     -------------
    Joe Bloggs                           MailUser
    Disabling RUS
    Adding EmailAddresses and WindowsEmailAddress
    Set-MailUser : Cannot convert 'x500:/o=IRELAND/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=JBloggs' to the type 'Microsoft.Exchange.Data.ProxyAddressCollection' required by paramet
    er 'EmailAddresses'. The value 'x500:/o=Ireland/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=JBloggs' is already present in the collection.
    At C:\mig365\Exchange2007MBtoMEU.ps1:70 char:60
    +         Set-MailUser -Identity $UserInfo.Identity -EmailAddresses  <<<< $UserInfo.ProxyAddresses -WindowsEmailAddress $UserInfo.Mail -DomainController $DomainController
    Setting Mailbox GUID 0322440a-ccd6-4db2-8e37-b56436359805
    Migration Complete for JBloggs@Ireland.ie


    Friday, July 19, 2013 12:10 PM