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