moving to Online Archive (in-place Archive) with powershell

6,891

Solution 1

As far as I know, it couldn’t simply use “search-mailbox” to move items to in-place archive mailbox, I found a script using EWS API, you could try it: https://gallery.technet.microsoft.com/scriptcenter/Move-emails-to-Archive-or-5394bb0d

In addition, I think it is better to use retention policy to move items to in-place archive.

Solution 2

Be careful with 'In-Place Archive'. There is no way to get folders back programmatically.

Docs (https://docs.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0):

Graph API does not support accessing in-place archive mailboxes, not on Exchange Online nor on Exchange Server.

This means that you have one-way road. You can place messages and folders in 'In-Place Archive', but we cannot find a way to access it those archived folders.

We broke our teeth on this (https://4bis.nl/en/blog-updates/4bis-software/2019/05/01/quote-manager-what-is-it-and-why-do-you-need-it this tool).

If anybody has ideas about this, please, don't be a stranger. See also: https://docs.microsoft.com/en-us/answers/questions/86478/collect-inplace-archives-mail-folder-from-exhange.html

Share:
6,891

Related videos on Youtube

Ezeq
Author by

Ezeq

Updated on September 18, 2022

Comments

  • Ezeq
    Ezeq over 1 year

    I'm trying to move the content of one folder in Exchange Online to the 'In-Place Archive'. As I have to do this for different folder for different users I was thinking of doing it with Powershell Search-Mailbox but I can´t find the proper path to put in -TargetMailbox

    Could you point it out?

    • longneck
      longneck about 5 years
      What criteria are you trying to use? It's more typical to create a retention policy at the mail box level, or create retention tags and apply them to individual messages or folders.
    • Ezeq
      Ezeq about 5 years
      For what I could read retention tags can take some time until they are effectively in production, and in this case I just want to help users to move the content of folder indicated by them to archive. So the criteria will be the user choice.
  • Ezeq
    Ezeq about 5 years
    Thank you Shaw, by the initial reading this is what I was looking for. I also believe that retention policies work well, but this is for a very particular situation as I told @longneck in reply to the comment on the question.
  • Geoff
    Geoff about 3 years
    Hey Max, In-Place Archive Mailboxes are still accessible via EWS using the well known folder names Archive*, even though Microsoft removed them from Graph.
  • Max Kaps 4bis.nl
    Max Kaps 4bis.nl about 3 years
    Thx, I will check this next monday.