Forum Discussion
Wahzo
Aug 09, 2022Copper Contributor
Exchange online New-MailboxRestoreRequest about transfer archive data
Hello Team, I am IT admin helps my user to work on mailbox issue and configuration. Today we have a request to transfer a soft-deleted mailbox content to a new shared mailbox for review purpo...
AmitKumar_Office365Concepts
Aug 23, 2022Copper Contributor
Hi, If an inactive mailbox has an archive mailbox, you can also restore it to the archive mailbox of an existing mailbox. To restore the archive from an inactive mailbox, you have to add the SourceIsArchive and TargetIsArchive switches to the command used to restore an inactive mailbox.
1. Create a variable that contains the properties of the inactive mailbox.
$inactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity <identity of inactive mailbox>
2. Display the LegacyExchangeDN of the inactive mailbox so that you can add it as a proxy address to the target mailbox in the next step.
$inactiveMailbox.LegacyExchangeDN
3. Add the LegacyExchangeDN of the inactive mailbox as an X500 proxy address to the target mailbox.
Set-Mailbox <identity of target mailbox> -EmailAddresses @{Add="X500:<LegacyExchangeDN of inactive mailbox>"}
4. Restore the contents of the archive from the inactive mailbox (source archive) to the archive of an existing mailbox (target archive). In this example, the contents from the source archive are copied to a folder named "Inactive Mailbox Archive" in the archive of the target mailbox.
New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName -SourceIsArchive -TargetMailbox <identity of target mailbox> -TargetIsArchive -TargetRootFolder "Inactive Mailbox Archive"
5. After the restore request is complete, you can optionally remove the LegacyExchangeDN of the inactive mailbox from the target mailbox. Leaving the LegacyExchangeDN from the inactive mailbox won't affect the target mailbox.
Set-Mailbox <identity of target mailbox> -EmailAddresses @{Remove="X500:<LegacyExchangeDN of inactive mailbox>"}
I hope this helps. Thank you!
1. Create a variable that contains the properties of the inactive mailbox.
$inactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity <identity of inactive mailbox>
2. Display the LegacyExchangeDN of the inactive mailbox so that you can add it as a proxy address to the target mailbox in the next step.
$inactiveMailbox.LegacyExchangeDN
3. Add the LegacyExchangeDN of the inactive mailbox as an X500 proxy address to the target mailbox.
Set-Mailbox <identity of target mailbox> -EmailAddresses @{Add="X500:<LegacyExchangeDN of inactive mailbox>"}
4. Restore the contents of the archive from the inactive mailbox (source archive) to the archive of an existing mailbox (target archive). In this example, the contents from the source archive are copied to a folder named "Inactive Mailbox Archive" in the archive of the target mailbox.
New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName -SourceIsArchive -TargetMailbox <identity of target mailbox> -TargetIsArchive -TargetRootFolder "Inactive Mailbox Archive"
5. After the restore request is complete, you can optionally remove the LegacyExchangeDN of the inactive mailbox from the target mailbox. Leaving the LegacyExchangeDN from the inactive mailbox won't affect the target mailbox.
Set-Mailbox <identity of target mailbox> -EmailAddresses @{Remove="X500:<LegacyExchangeDN of inactive mailbox>"}
I hope this helps. Thank you!