Migration of selected messages from In-Place Archive to another tenant

Occasional Contributor



I would like to migrate a select group of messages (based on certain criteria related to from/to/cc addresses) from the In-Place Archive of one mailbox in tenant A to another mailbox in tenant B.


I am a Global Admin for both tenants A and B, so I wanted to check if there's a way to do this through the admin center or PowerShell. I realize I can do this through an Outlook client (by searching/filtering and then moving messages), but this has proven to take too much time, since I am unable to move so many messages at once from a search results display.



3 Replies
No, there isnt. Best you can do via the UI is run eDiscovery search/export, then import the resulting PST (or individual messages) to the other mailbox. However, there is no way to limit the search to just items in the archive, so you might need to get creative with the filter.
PowerShell on its own doesn't expose any item-level operations, but generally speaking you can use some EWS (or Graph API) based script. Here's a sample one, though it does NOT support moving between mailboxes in different tenants: https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/wiki/Merge-MailboxFolders.ps1
You can however use it as a starting point to build you own solution.
Thanks! Using eDiscovery then exporting/importing the PST may actually work. The specific criteria I will use will only bring up messages in the archive anyway, so that’ll work out.
One question though: Can I delete the messages from the first mailbox using this? Remember I want to move, not copy, messages.