How to Force Exchange Online Archive Processing with PowerShell
Question details
The user wants to manually trigger Exchange Online to process a mailbox so that messages move to an In-Place Archive immediately.

- Product
- Exchange Online
- Device & OS
- not provided
- Scenario
- A retention policy has been enabled, but the user needs messages to be archived immediately instead of waiting for the automated schedule.
- Observed behavior
- Messages do not move to the In-Place Archive immediately after a policy is enabled because the Managed Folder Assistant processes mailboxes on a delayed schedule.
Ensure you have the Exchange Online PowerShell module installed and that your account has the necessary administrative permissions to manage mailbox policies.
Use the Start-ManagedFolderAssistant Cmdlet
Run a PowerShell command to manually trigger the Managed Folder Assistant for a specific mailbox, forcing retention policies to process immediately.
By default, the Managed Folder Assistant processes Exchange Online mailboxes automatically on a schedule (typically up to 7 days). You can bypass this wait time by manually initiating the assistant via Exchange Online PowerShell.
Open PowerShell on your computer and run the 'Connect-ExchangeOnline' command to log in with your administrator credentials.
Execute the command 'Start-ManagedFolderAssistant -Identity user@contoso.com', replacing 'user@contoso.com' with the actual identity or email address of the target mailbox.
Allow some time for the processing to complete. The archiving process is initiated immediately, but larger mailboxes may take a few hours or even days to fully complete moving the messages.

A Lightweight Alternative for Your Daily Office Tasks
While server administration like Exchange requires specialized Microsoft tools, your day-to-day document creation doesn't need heavy, expensive software. WPS Office is a free, lightweight, and highly compatible alternative for all your productivity needs.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install the Application: Run the installer and follow the fast, on-screen instructions to set up WPS Office on your device.
- 3. Open Your Documents: Launch WPS Office and easily open, edit, or save your existing Microsoft Office files.

Frequently Asked Questions
Why don't messages move to the archive immediately after setting a retention policy?
Retention policies rely on the Managed Folder Assistant, an automated background process in Exchange Online. Because it runs on a regular schedule rather than continuously, there is a natural delay before mailboxes are processed and messages are archived.
What if messages still do not move to the archive mailbox after running the PowerShell command?
First, verify that the messages strictly meet the conditions (such as age limits) specified in your retention policy. If the automated process is still delayed, users also have the option to manually move the required messages into their In-Place Archive.
Do I need special permissions to use Start-ManagedFolderAssistant?
Yes, you must be assigned appropriate administrator roles, such as Mailbox Management or Organization Management, in Exchange Online to successfully execute this cmdlet.




