Commands › Exchange Online

Get-PublicFolderStatistics

Exchange Online ExchangeOnlineManagement Get-*

Retrieve statistical information about public folders, such as folder size and last logon time.

Quick start script

# Get-PublicFolderStatistics — 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-PublicFolderStatistics | Format-List

# 3. Export for evidence / drift tracking
Get-PublicFolderStatistics | Export-Clixml .\PublicFolderStatistics-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-PublicFolderStatistics [[-Identity] <PublicFolderIdParameter>]
 [-DomainController <Fqdn>]
 [-ResultSize <Unlimited>]
 [-Server <ServerIdParameter>]
 [-Mailbox <MailboxIdParameter>]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Identity PublicFolderIdParameter The Identity parameter specifies the GUID or public folder name that represents a specific public folder. You can also include the path using the 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. You can use any value that uniquely identifies the mailbox. For example:
-ResultSize Unlimited This parameter is available only in on-premises Exchange.
-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.