Commands › Exchange Online
Get-EXOMailboxStatistics
For more information, see About the Exchange Online PowerShell module. Use the Get-EXOMailboxStatistics cmdlet to return information about a mailbox, such as the size of the mailbox, the number of messages it contains, and the last time it was accessed.
Quick start script
# Get-EXOMailboxStatistics — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Get-EXOMailboxStatistics | Format-List
# 3. Export for evidence / drift tracking
Get-EXOMailboxStatistics | Export-Clixml .\EXOMailboxStatistics-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-EXOMailboxStatistics
[-Archive]
[-DatabaseGuid <Guid>]
[-ExchangeGuid <Guid>]
[-Identity <String>]
[-IncludeMoveHistory]
[-IncludeMoveReport]
[-IncludeSoftDeletedRecipients]
[-PrimarySmtpAddress <String>]
[-Properties <String[]>]
[-PropertySets <PropertySet[]>]
[-UserPrincipalName <String>]
[<CommonParameters>]
Parameters (11)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.