Our thinking

Force Exchange Online Archiving to start archiving email on Office 365

When you enable Exchange Online Archiving for a user on Office 365, it can take 24 hours or more for the Managed Folder Assistant to start it’s first run and begin archiving email out of the primary mailbox.

Edit: If you’re using the Exchange Online v2 PowerShell module, then this process is considerably simpler, and supports Modern Authentication.


Start-ManagedFolderAssistant -Identity [email protected]

If you want this process to start immediately, connect to Office 365 with PowerShell and tell the Managed Folder Assistant to start running.

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

Start-ManagedFolderAssistant -Identity [email protected]

Then wait 5 minutes or so for it to begin running and check the progress via logging in to OWA and looking at either the contents of the In-Place Archive mailbox in the left-hand sidebar or via the Exchange Admin Centre > Mailboxes > Recipients > In-Place Archive > View details.

15 thoughts on “Force Exchange Online Archiving to start archiving email on Office 365

  1. To do all users

    $UserMailboxes = Get-Mailbox -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)} $UserMailboxes | ForEach {Start-ManagedFolderAssistant $_.Identity}

  2. This is a cleaner script to trigger the archiving for all users. -Filter also doesn’t appear to be an available switch for get-mailbox in the new PS Module.

    Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize unlimited | ForEach {Start-ManagedFolderAssistant $_.Identity}

  3. Any ideas on the error I get? The call to Mailbox Assistants Service on server: ‘xxxx.xxxx.prod.outlook.com’ failed. Error from RPC is -2147220992.

    1. You need to log in to the mailbox after enabling it – e.g. in Outlook on the web. This prompts Exchange Online to create the mailbox, and then you can force archiving to start.

  4. You could disable the archive option for that email account and then enable it, wait for a short while and then recheck and the archiving process should have kicked in. You can tell it’s working by checking under Mailbox Features –> Archiving: Enabled and it should confirm the size of the archive mailbox underneath. Refresh it after a minute and go back and the size should have increased.

    1. Archiving often does not start immediately after enabling it on a mailbox, hence the whole reason for this post. The Managed Folder Assistant process that performs the archiving usually only runs once every 24 hours.

  5. Pingback: Lancer Mail 365
  6. Hey all. I had configured a mailbox for archive and set retention to it and ran this command several times over the day with no luck. Contacted Microsoft to see what the deal is. Apparently even me forcing the policy it can take a day and up to a few days to start that processing. Her explanation was that Office 365 runs on shared resources with other customers and the Archive policy runs every 7 days by default and when we force it all we do is just add it to the queue to be processed skipping the 7 day timer.

Leave a Reply to Tapaswi Wakhloo Cancel reply