Microsoft 365 offers auto-expanding archiving, a feature that automatically increases storage when an archive mailbox reaches its limit. This ensures that users never run out of space for their emails, making it an essential feature for organizations with heavy email usage.
Before enabling Auto-Expanding Archiving, ensure that you meet the following requirements:
1. Licensing Requirements
Your Microsoft 365 plan must include auto-expanding archiving, which is available in:
Note: Auto-expanding archiving is NOT available in Business Standard or Business Premium plans.
2. Admin Permissions
You must have one of the following roles in Microsoft 365:
Global Administrator, Exchange Online Administrator
3. Archive Mailbox Must Be Enabled
Before enabling Auto-Expanding Archive, the user must already have an archive mailbox enabled. If not check how to enable Archive mailbox in Office 365.
4. PowerShell Access
Install and import the Exchange Online module (if not already installed):
Install-Module ExchangeOnlineManagement Import-Module ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName youradmin@yourdomain.com
You can enable Auto-Expanding Archiving for a single user or for the entire organization using PowerShell.
Step 1: Run PowerShell
Open PowerShell as an administrator.
Note: Make sure you Launch Windows PowerShell as "Run as Administator"
Step 2: Connect to Exchange Online PowerShell
Now Execute the below command to connect to Exchange Online:
Connect-ExchangeOnline -UserPrincipalName youradmin@yourdomain.com
Step 3: Enable Auto-Expanding Archive
Execute the below command to enable Auto-Expanding Archive
Enable-Mailbox -Identity user@yourdomain.com -AutoExpandingArchive
Step 4: Verify Auto-Expanding Archiving
Execute the below command to Verify Auto-Expanding Archiving
Get-Mailbox -Identity user@yourdomain.com | FL AutoExpandingArchiveEnabled
If it returns True, auto-expanding archiving is successfully enabled.
To enable auto-expanding archiving for all mailboxes in your organization:
Step 1: Connect to Exchange Online PowerShell
Connect-ExchangeOnline -UserPrincipalName youradmin@yourdomain.com
Step 2: Enable Auto-Expanding Archive Organization-Wide
Set-OrganizationConfig -AutoExpandingArchive $true
Step 3: Enable Auto-Expanding Archive for All Users
Get-Mailbox -Filter {ArchiveStatus -eq "Active"} | ForEach-Object {Enable-Mailbox -Identity $_.PrimarySmtpAddress -AutoExpandingArchive}
Step 4: Verify Organization-Wide Auto-Expanding Archiving
Get-OrganizationConfig | Select AutoExpandingArchiveEnabled
If it returns True, auto-expanding archiving is successfully enabled.
Important Note