Commands › Exchange Online
Get-EXOMailboxFolderStatistics
For more information, see About the Exchange Online PowerShell module. Use the Get-EXOMailboxFolderStatistics cmdlet to retrieve information about the folders in a specified mailbox, including the number and size of items in the folder, the folder name and ID, and other information.
Quick start script
# Get-EXOMailboxFolderStatistics — 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-EXOMailboxFolderStatistics | Format-List
# 3. Export for evidence / drift tracking
Get-EXOMailboxFolderStatistics | Export-Clixml .\EXOMailboxFolderStatistics-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-EXOMailboxFolderStatistics
[-Archive]
[-DiagnosticInfo <String>]
[-ExternalDirectoryObjectId <Guid>]
[-Folderscope <ElcFolderType>]
[-Identity <String>]
[-IncludeOldestAndNewestItems]
[-IncludeSoftDeletedRecipients]
[-PrimarySmtpAddress <String>]
[-UserPrincipalName <String>]
[<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.