Migrating ProxyAddress attribut

Welcome Forums General PowerShell Q&A Migrating ProxyAddress attribut

Viewing 0 reply threads
  • Author
    Posts
    • #6277
      Member
      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?

      Cheers
      Beef

      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.

Viewing 0 reply threads
  • The topic ‘Migrating ProxyAddress attribut’ is closed to new replies.