Commands › Exchange Online

Get-PublicFolderItemStatistics

Exchange Online ExchangeOnlineManagement Get-*

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)

ParameterTypeRequiredWhat it controls
-Identity PublicFolderIdParameter yes The Identity parameter specifies the GUID or public folder name that represents a specific public folder. You can also include the path using the following format: \\TopLevelPublicFolder\\PublicFolder
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Mailbox MailboxIdParameter The Mailbox parameter specifies the identity of the hierarchy public folder mailbox that you want to view. You can use any value that uniquely identifies the mailbox. For example:
-ResultSize Unlimited This parameter is available only in the cloud-based service.
-Server ServerIdParameter The Server parameter filters the results by the specified Exchange server. You can use any value that uniquely identifies the server. For example:

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.