Skip to main content
(844) 422-7000

How To Enable Auto Archiving in Microsoft 365 Email Accounts in Exchange Online

  1. Connect to Exchange Online PowerShell

    • Open Powershell (with admin priviliges)
    • Enter Connect-ExchangeOnline
    • Log in with an account that has administrator privileges for your Microsoft 365 tenant
Microsoft 365 sign in
    • Run the following command in Exchange Online PowerShell to enable auto-expanding archiving for a specific user. As previously explained, the user’s archive mailbox (main archive) must be enabled before you can turn on auto-expanding archiving for that user.

Enable-Mailbox <user mailbox> -AutoExpandingArchive

Alternatively, you many run Set-OrganizationConfig -AutoExpandingArchive to enable auto-expanding archiving for the entire organization.

Reference: Enable auto-expanding archiving – Microsoft Purview (compliance) | Microsoft Learn