Forum Discussion
Hazem Zureiqat
Nov 03, 2021Copper Contributor
Migration of selected messages from In-Place Archive to another tenant
Hello, 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 te...
VasilMichev
Nov 03, 2021MVP
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.
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.
Hazem Zureiqat
Nov 03, 2021Copper Contributor
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.
One question though: Can I delete the messages from the first mailbox using this? Remember I want to move, not copy, messages.
- Hazem ZureiqatNov 04, 2021Copper Contributor