Enable Auto-Expanding Archiving Tenant-Wide in Microsoft 365

Enable Auto-Expanding Archiving Tenant-Wide in Microsoft 365

This step by step guide shows how to enable auto-expanding archiving tenant-wide using Exchange Online PowerShell. It includes the exact connect command and required module. This process cannot be completed in the web portals or Cloud Shell.

Why This Cannot Be Done In Cloud Shell Or Admin Portals

The Microsoft 365 Admin Center and Exchange Admin Center do not offer a GUI setting to enable auto-expanding archiving.

The in-browser Cloud Shell in EAC is a restricted environment and does not support the full modern Connect-ExchangeOnline workflow or the organization-level switch needed to enable auto-expansion.

Solution: install and use the ExchangeOnlineManagement PowerShell module locally.

Prerequisites

Role: Global Admin or Exchange Admin.

Licensing that supports archiving, for example: Microsoft 365 E3 or E5, Exchange Online Plan 2, or Exchange Online Archiving add-on.

PowerShell available on your computer.

The ExchangeOnlineManagement module installed locally.

Step 1 - Install The Exchange Online PowerShell Module

Run the following in PowerShell to install the required module for your user account:

Install-Module ExchangeOnlineManagement -Scope CurrentUser

Optional explicit import if needed:

Import-Module ExchangeOnlineManagement

Step 2 - Connect To Exchange Online With An Admin Account

Use your admin UPN when connecting. This authenticates your PowerShell session as an administrator.

Connect-ExchangeOnline -UserPrincipalName your.admin@your-domain.com

Replace your.admin@your-domain.com with your actual admin account.

Complete the sign in and MFA prompts.

Note: this UPN is your admin account, not the end user mailbox.

Step 3 - Check Tenant-Wide Auto-Expanding Setting

Get-OrganizationConfig | Select-Object AutoExpandingArchiveEnabled

If the result is False, auto-expanding archiving is not enabled tenant-wide.

Step 4 - Enable Auto-Expanding Archiving Tenant-Wide

Set-OrganizationConfig -AutoExpandingArchive

This enables auto-expanding archiving for the entire organization.

No additional parameters are required.

Step 5 - Verify The Change

Get-OrganizationConfig | Select-Object AutoExpandingArchiveEnabled

You should now see True.

Step 6 - Disconnect Your Session

Disconnect-ExchangeOnline -Confirm:$false

Operational Notes

Archive mailboxes begin at 100 GB. With auto-expansion enabled, Microsoft will allocate additional archive storage in increments as needed.

Provisioning of additional storage is not instant. After an archive approaches quota, Microsoft may take time to add capacity.

Retention and archive policies continue to work normally with auto-expansion enabled.

There is no GUI indicator that auto-expanding is active. Verification is performed via PowerShell as shown above.

Quick Troubleshooting

Command not recognized: run Import-Module ExchangeOnlineManagement first.

Cannot connect: confirm you are using an admin UPN and that MFA is satisfied.

Enabled but no growth: allow time for Microsoft to provision capacity after the archive reaches its threshold and confirm your archive and retention policies are configured as intended.

    • Related Articles

    • Grant Tenant-Wide Admin Consent for ChatGPT Outlook Integration in Microsoft 365

      Purpose This article explains how a Microsoft 365 administrator can grant tenant-wide admin consent for the ChatGPT Outlook integration. This removes the "Admin approval required" prompt and allows approved users to connect ChatGPT to Outlook email ...
    • Provision an Online Archive Mailbox in Exchange Admin Center

      Summary: This guide explains how administrators can provision the Online Archive mailbox for a user in Microsoft 365 using the Exchange admin center (EAC). Prerequisites - You must be a Global Administrator or Exchange Administrator. - The user must ...
    • How to Enable Automatic Email Forwarding in Microsoft 365

      This guide explains how to allow external or automatic email forwarding in Microsoft 365 by modifying the Outbound Anti-Spam Policy within the Microsoft 365 Defender portal. This is required when forwarding emails to an external address is blocked. ...
    • How to Make Shared SharePoint Documents Appear in a User's OneDrive

      Overview Files stored in Microsoft SharePoint do not automatically appear in a user's Microsoft OneDrive folder structure.To make shared document libraries visible in OneDrive and synced to the user's computer, the user must add a SharePoint library ...
    • How to Export a User List in Microsoft 365 Admin

      Overview: This guide explains how to export a list of all users from the Microsoft 365 Admin Center, including details such as names, email addresses, licenses, and roles. ————— Step 1: Sign in 1. Go to https://admin.microsoft.com 2. Sign in using ...
    • Popular Articles

    • How to install Office Apps (365) to your Windows or Mac computer

      How to Download and Install Microsoft 365 Office Apps (Windows and Mac) This guide will walk you through downloading and installing the Microsoft 365 Office apps, including Word, Excel, PowerPoint, Outlook, and more. The steps are nearly the same for ...
    • How to Save and Share a Document in OneDrive from Word or Excel

      Follow these steps to save your document to OneDrive and share it with others directly from Word or Excel. ————— Step 1: Save to OneDrive 1. In Word or Excel, click File. 2. Select Save As. 3. Choose OneDrive – [Your Organization or Personal]. 4. ...
    • How to Collaborate on a Document in Real-Time with Others

      Microsoft 365 allows you to co-author documents with colleagues in Word, Excel, or PowerPoint. ————— Step 1: Save to OneDrive or SharePoint 1. Open your file in Word, Excel, or PowerPoint. 2. Click File > Save As and select OneDrive or SharePoint. ...
    • How to Recover Unsaved or Previous Versions of Office Files

      If you lose changes or accidentally close a document, you can often recover it using Office’s built-in recovery tools. ————— Step 1: Recover Unsaved Files 1. Open Word, Excel, or PowerPoint. 2. Go to File > Info > Manage Document (or Manage ...
    • How to Use Templates in Word, Excel, and PowerPoint

      Microsoft Office apps come with ready-to-use templates to save you time. ————— Step 1: Access Templates 1. Open Word, Excel, or PowerPoint. 2. From the start screen, you’ll see featured templates. 3. Or click File > New to browse available templates. ...