Migrating ProxyAddress attribut

Welcome Forums General PowerShell Q&A Migrating ProxyAddress attribut

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years, 6 months ago.

  • Author
  • #6277

    Topics: 1562
    Replies: 0
    Points: 0
    Rank: Member

    by Beefstew at 2013-02-15 02:28:07

    Hi all,

    I need a script that will export the ProxyAddress contents of all groups in one domain and and import to a new Domain

    Basically I've migrated all distribution groups from Exchange 2003 to Exchange 2010, mail enabled and added x500

    I just now need to add the old proxyaddresses to the migrated groups and do not want use Recipient Policies

    Any idea's please?


    by coderaven at 2013-03-28 22:59:08

    On the old domain I would just store the information like so. (filter however you want!)
    Get-ADUser -Filter * -Properties proxyaddresses, mail | Export-Clixml -Path \\Path\to\File.xml
    Using XML will keep the data structure but you will lose methods and invocation.

    In you target domain, use the Get/Set Mailbox cmdlets to add proxyaddresses
    $Old = Import-Clixml -Path \\Path\to\file.xml
    $MB = Get-Mailbox $Old.Name
    $MB.EmailAddresses +=$Old.ProxyAddresses
    $MB | Set-Mailbox

    I have not tested this. Let me know how it goes.

The topic ‘Migrating ProxyAddress attribut’ is closed to new replies.