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