Microsoft - Enable Auto-Expanding Archiving
Note:
Understand the following restrictions:
- After you turn on auto-expanding archiving for your organization or for a specific user, it can't be turned off.
- Administrators can't adjust the storage quota for auto-expanding archiving.
- Auto-expanding archiving prevents you from recovering or restoring an inactive mailbox. This means if you enable auto-expanding archiving for a mailbox, and the mailbox becomes inactive in the future, you won't be able to recover the inactive mailbox or restore it.
After you enable auto-expanding archiving for an inactive mailbox, the only way to recover data is by using the content search tool in the Microsoft Purview portal to export the data from the mailbox and import to another mailbox. For more information, see the Inactive mailboxes and auto-expanding archives.
Step 1: Launch PowerShell as Administrator
Click Start and search for PowerShell.
Launch this on the Server that has the Targeted User
Right-click on Windows PowerShell and select “Run as Administrator”.
Step 2: Check if Auto-Expanding Archives Are Enabled
Confirm if AutoExpanding Archives are enabled organization wide:
Get-OrganizationConfig | FL AutoExpandingArchiveEnabled

If it returns True, auto-expanding archives are already enabled.
If it returns False, proceed to the next step to enable it
Step 3: Enable Auto-Expanding Archives Organization-Wide
Set-OrganizationConfig -AutoExpandingArchiveEnabled $true
Step 4: Validate User Eligibility
- Before enabling a user's mailbox for auto-expanding archive, verify the following:
User must have Exchange Online Plan 2/E3/E5 license, archive enabled, retention policy assigned.
Step 5: Enable Auto-Expanding Archive for the User
Enable-Mailbox -Identity user@domain.com -AutoExpandingArchive