The following examples demonstrate how to migrate mailboxes from/to Archive Manager instance:
Table 40: Scenario: Migrating data
Operation | Command | Description |
---|---|---|
Migrating data from one Archive Manager instance to another |
$target = Attach-RMEArchiveManager -ServerName AMserver1.mycompany.corp -Port 5555 -Authentication Forms -UserName AM1admin -Password P@ssw0rd1 -ExportDirectory "C:\AMLoadDir" Attach-RMEArchiveManager -ServerName AMserver2.mycompany.corp -Port 5555 -Authentication Forms -UserName AM2admin -Password P@ssw0rd2 | Get-RMEMailbox "Administrator" | Restore-RMEMailbox -TargetFolder $target |
In the first line of this example, the Attach-RMEArchiveManager cmdlet connects to the target Archive Manager server. The -ExportDirectory parameter specifies the folder from which Archive Manager can load data (C:\AMLoadDir). In the second line of this example, the Attach-RMEArchiveManager cmdlet connects to the source Archive Manager server, and then pipes the server object to the Get-RMEMailbox cmdlet. The Get-RMEMailbox retrieves the Administrator mailbox from AMserver2, and then pipes the mailbox to the Restore-RMEMailbox cmdlet, which restores the mailbox to the Archive Manager server saved in the $target variable. |
Migrating data from the source Archive Manager server to .pst on the target Archive Manager server |
$AMSourceStorage = Attach-RMEArchiveManager -ServerName <ArchiveManagerServer name> -Port 80 -TargetDomain $AMdomain -UserName $AMUser -Password $AMPassword -Authentication Windows –LoadAllMailboxes $AMSourceStorage | Get-RMEMailbox | Restore-RMEMailbox -TargetPath "C:\Exported\PST" |
The Attach-RMEArchiveManager cmdlet connects to the source Archive Manager server. In the second line of this example, Get-RMEMailbox cmdlet retrieves all the mailboxes from the source server. Then, the Restore-RMEMailbox cmdlet restores each of the mailboxes to an individual .pst file in the specified folder on the target Archive Manager server. |
Migrating data from Archive Manager to on-premises Exchange |
$AMSourceStorage = Attach-RMEArchiveManager -ServerName <ArchiveManagerServer> -Port 80 -TargetDomain $AMdomain -UserName AMUser -Password $AMPassword -Authentication Windows –LoadAllMailboxes $AMSourceStorage | Get-RMEMailbox | % { Restore-RMEMailbox $_ -TargetFolder (Attach-RMEExchangeMailbox -ConnectionMethod Auto -MailboxName $_.DisplayName) } |
The Attach-RMEArchiveManager cmdlet connects to the source Archive Manager server. In the second line, Get-RMEMailbox cmdlet retrieves all the mailboxes from the source. Then, the Restore-RMEMailbox cmdlet restores each of the mailboxes to corresponding live Exchange Server mailbox. Attach-RMEExchangeMailbox establishes a connection to the live Exchange Server mailbox you specify. In this example, mailboxes are matched by DispalyName. |
Migrating PST contents to the target Archive Manager server | (Attach-RMEPersonalFolders 'c:\ExportArchive\PST\AmeliaSpringdee.pst' -IsSource).Root | Restore-RMEFolder -TargetFolder ((Attach-RMEArchiveManager -ServerName 'ArchiveManager' -Authentication Windows -ExportDirectory "\\ArchiveManager\c$\Quest\ArchiveManager\Export" | Get-RMEMailbox 'AmeliaSpring').Root |
The Attach-RMEPersonalFolders establishes a connection to the specified .pst on the source. The Attach-RMEArchiveManager cmdlet connects to the target Archive Manager server. Then, Restore-RMEFolder restores the .pst contents to the specified target folder. |