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.

10 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.

Leave a Reply