How to Enable the Auto-Expanding - Online Email Archive using PowerShell
Install and
Connect to the Exchange Online PowerShell Module
Root Cause: Auto-expanding online Email archive for exchange online plan2 users.
Install the Exchange Online Management Module:
- Open PowerShell as an administrator.
- Install the Exchange Online Management module by
running the following command:
- #Install-Module -Name
ExchangeOnlineManagement
- If prompted to install the NuGet provider, confirm by
typing Y and pressing Enter.
- If prompted to install the module from the PSGallery,
confirm by typing Y and pressing Enter.
Import the Exchange Online Management Modul:
- Import the module into your session:
- #Import-Module
ExchangeOnlineManagement
Connect to Exchange Online:
- Connect to Exchange Online with the following command:
- Use
the Connect-ExchangeOnline command to connect to Exchange Online. Replace
admin@yourdomain.com with the actual admin email address:
- #Connect-ExchangeOnline
-UserPrincipalName user@domain.com -ShowProgress $true
- A sign-in window will appear. Enter the Office 365
admin credentials.
Enable Auto-Expanding Archiving:
- Once connected, run the command to enable
auto-expanding archiving:
- Replace user@domain.com with Auto
expand username@domain.com
- #Enable-Mailbox -Identity
"user@domain.com" -AutoExpandingArchive
Verify
the Archive Auto Expanding status
After running the Enable-Mailbox -Identity "user@domain.com"
-AutoExpandingArchive command, you can verify whether auto-expanding archiving
has been enabled by using the following steps:
Check Archive
Status via PowerShell
You can check the status of the auto-expanding archive
by running a PowerShell command to get the mailbox details and specifically
look for the AutoExpandingArchiveEnabled property.
#Get-Mailbox -Identity
"user@domain.com" | Format-List AutoExpandingArchiveEnabled
Check Archive
Status via Exchange Admin Center (EAC)
You can also verify the status through the Exchange
Admin Center (EAC):
Login to EAC:
- Go to the Exchange Admin Center (https://admin.exchange.microsoft.com/).
- Login with your admin credentials.
Navigate to Recipients:
- In the left pane, click on "Recipients."
- Click on "Mailboxes."
Select the User Mailbox:
- Find and select the mailbox for which you enabled
auto-expanding archiving.
Check Archive Settings:
- In the mailbox properties pane, check the
"In-Place Archive" section to see if the auto-expanding archive is
enabled.
- For a more detailed view of the archive properties,
you can use the Get-Mailbox cmdlet combined with Format-List to display all
relevant archive properties.
- #Get-Mailbox -Identity
"user@domain.com" | Format-List *archive*
- This will show detailed information about the
mailbox's archive settings, including ArchiveStatus, ArchiveDatabase,
ArchiveGuid, ArchiveName, ArchiveQuota, ArchiveWarningQuota, and
AutoExpandingArchiveEnabled.
Verify Archive
Size and Growth
- To monitor the size and growth of the archive mailbox,
you can use the Get-MailboxStatistics cmdlet. This can help you track the usage
over time to see if the archive is expanding.
- #Get-MailboxStatistics
-Identity "user@domain.com" -Archive | Select DisplayName,
TotalItemSize, ItemCount
- This command will display the archive mailbox
statistics, including the total size and the number of items in the archive.
Archive
Status via Exchange Admin Center (EAC)
Related Articles
How to enable the Microsoft Authenticator app - Multi Factor Authentication (MFA)
Keep your account safe Method 1 Download & install the Microsoft Authenticator app to your mobile device. Install the Authenticator app on your mobile. Sign in to your account security dashboard. Select Add a new way to sign in or verify and choose ...
Enable AI Eye contact and Noise cancelling using NVIDIA Broadcast
What is NVIDIA Broadcast? NVIDIA Broadcast allows you to enhance your voice and video for calls and live streaming with the power of AI. System Requirements You need to have an RTX Powered NVIDIA GPU and Windows 10/11 for NVIDIA Broadcast to work. ...
How to send AutoSupport Dispatch on a NetApp Device via SANtricity System Manager
Purpose This purpose of this article is to provide detailed instructions on how to manually trigger and send an AutoSupport dispatch from a NetApp E-Series or EF-Series storage System using SANtricity System Manager. AutoSupport is a NetApp feature ...
Verify your MSFT DCAT
Once your DCAT Request is approved, you should receive an email from DCAT Notification Service<dcatp0@dcat.microsoft.com> with the following information: Double check the following: Location, DXB26, AUH21 etc... Start and End Date and Time Access ...
Enabling Auto Power-on Function in Liva Z3 (Celeron) Mini PC
Enabling auto turn-on function in Liva Z3 (Celeron) mini PC Solution To enable auto power on, we need to make some changes in the BIOS setting . Go to the Chipset menu in the BIOS setting From the chipset menu, select SOC Configuration In the SOC ...