Get-Mailbox | select userprincipalname, AutoExpandingArchiveEnabled
First, connect to Exchange Online PowerShell:
Connect-ExchangeOnline
Enable archive mailbox creation for all users when their primary mailbox reaches 90%:
Set-OrganizationConfig -AutoEnableArchiveMailbox $true
Enable archive mailbox for a single user:
Enable-Mailbox -Identity user@domain.com -Archive
Enable auto-expanding archive for the organization (new mailboxes and existing mailboxes):
Set-OrganizationConfig -AutoExpandingArchive
Enable auto-expanding archive for a single user:
Enable-Mailbox <user mailbox> -AutoExpandingArchive
Check to see whether users have auto-expanding archive enabled:
Get-Mailbox | select UserPrincipalName, AutoExpandingArchiveEnabled
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article