Commands › Exchange Online
Get-PublicFolderItemStatistics
View information about items within a specified public folder. Information returned includes subject, last modification time, creation time, attachments, message size, and the type of item. You can use this raw information to better understand the distribution of items and item characteristics across public folders.
Quick start script
# Get-PublicFolderItemStatistics — 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-PublicFolderItemStatistics -Identity <PublicFolderIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Get-PublicFolderItemStatistics | Export-Clixml .\PublicFolderItemStatistics-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-PublicFolderItemStatistics [-Identity] <PublicFolderIdParameter>
[-DomainController <Fqdn>]
[-ResultSize <Unlimited>]
[-Server <ServerIdParameter>]
[-Mailbox <MailboxIdParameter>]
[<CommonParameters>]
Parameters (5)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.