Score:0

Exchange Online: move some messages back from online archive

cn flag

Due to a mistake on a retention policy, too many (too recent) messages of user mailboxes were moved to online archive. I know that MS offers no wayback for online archive. I investigated some options:

  1. Deleting the archive and importing it back to the primary mailbox: I can't do, because some mailboxes were completely full at the time of archiving and now there's no room for merging
  2. Exporting archive to PST; reimport it to primary mailbox, filtered by date; delete and recreate archive; reimport the remaining of PST to archive: may work but it's a huge effort
  3. In an old post I found that there was a PS script, leveraging EWS, that was able to move selected items to archive. While wondering if it could do the reverse path, I found out that the script is no longer present in Powershell Gallery.

Other ideas?

Joy Zhang avatar
us flag
Any updates on your issue?
Massimo avatar
cn flag
We finally decided to just export archive to PST and delete some folder to free up space. Anyway I think your solution is good and I mark it as answer. Thanks a lot.
Score:0
us flag

I suggest you disable the retention policy for the mailbox first and export and import pst file via powershell, here are some detailed steps for your reference:

  1. Export the archive to a PST file

    New-MailboxExportRequest –Mailbox usermailbox -IsArchive -FilePath filesharePSTITarchive.pst

  2. Import the exported PST file into the mailbox

    New-MailboxImportRequest -Mailbox usermailbox -FilePath filesharePSTITarchive.pst

  3. Create a new and correct retention policy then apply this policy to the mailbox, wait for some time to make the policy take effect. Once the policy taken effect, all old messages which you want to move back to archive will be in archive mailbox.

For more details: New-MailboxExportRequest

In addition, here's a similar thread for your reference as well.

Massimo avatar
cn flag
Thank you Joy. What if the total size exceeds the mailbox size? Will the import fail? Or is there some grace space? This seems to be the case for at least one user, where the sum of mailbox and archive is 50,3GB, while mailbox size limit is 50GB.
Joy Zhang avatar
us flag
Based on my knowledge, the amount of mailbox storage available is determined by the mailbox type and the user's subscription license, you could refer to the blog to check how many storage for your archive mailbox. https://docs.microsoft.com/en-us/office365/servicedescriptions/exchange-online-service-description/exchange-online-limits#storage-limits It doesn't look like you've exceeded the mailbox size
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.