How To Enable Auto Archiving in Microsoft 365 Email Accounts in Exchange Online
How To Enable Auto Archiving in Microsoft 365 Email Accounts in Exchange Online
-
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
-
- 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