Others

Create a Public Folder Report in Exchange Online PowerShell

Khadija KhanKhadija Khan Nov 20, 2026 868 views

Question details

Create an Exchange Online report for a public folder using its folder path or email address.

Create a Public Folder Report in Exchange Online PowerShell
Product
Exchange Online PowerShell
Device & OS
not provided
Scenario
An administrator needs to report on a public folder and determine whether to include folder details or item statistics.
Observed behavior
The desired report should identify the relevant public folder and provide the requested details or item statistics.
Before you start

Decide whether the report should cover folder properties, items, mailboxes, or activity, and identify the folder path or email address. Confirm that your account has the Exchange Online permissions needed to access the public folder information.

Solution 1Recommended

Export public folder details or item statistics with PowerShell

Use this method to retrieve folder properties or item-level statistics and save them as a CSV report.

Get-PublicFolder retrieves folder details, while Get-PublicFolderItemStatistics retrieves statistics for items in a specified folder. Mailbox and activity reports require a separately defined scope and may need other reporting tools.

1
Connect to Exchange Online

Open PowerShell and run Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser if the module is not installed. Then run Import-Module ExchangeOnlineManagement followed by Connect-ExchangeOnline, and sign in when prompted.

2
Identify the folder

If you know the folder path, use it as the identity. If you only have an email address, run Get-MailPublicFolder -Identity "address@example.com" | Format-List * to inspect the mail-enabled folder details, then verify the folder path with Get-PublicFolder -Recurse.

3
Export folder details

For a folder properties report, replace the example path and run Get-PublicFolder -Identity "\Marketing\2013\Pamphlets" | Export-Csv -Path "PublicFolderDetails.csv" -NoTypeInformation -Encoding UTF8.

4
Export item statistics

For an item-level report instead, replace the example path and run Get-PublicFolderItemStatistics -Identity "\Marketing\2013\Pamphlets" | Export-Csv -Path "PublicFolderItems.csv" -NoTypeInformation -Encoding UTF8.

5
Review the report

Open the exported CSV file from your PowerShell working folder in a spreadsheet application and check that its columns and rows match the report scope.

Export public folder details or item statistics with PowerShell
Check access and scope: If a command fails or returns unexpected results, verify the folder identity and your permissions. Item statistics are not the same as mailbox or activity reporting.
Free Microsoft Office alternative

Review Your Public Folder CSV Report in WPS Office

After exporting the report with Exchange Online PowerShell, use the free, lightweight WPS Office suite to open and review it in a familiar spreadsheet interface. WPS Office supports common Microsoft Office formats, making it easy to work with existing files.

Open and review exported public folder CSV reports in WPS SpreadsheetsCompatible with Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface to sort and inspect report dataWork with a free, lightweight alternative to Microsoft Office
microsoft office alternative - wps office

Frequently Asked Questions

How do I connect to Exchange Online PowerShell?

In PowerShell, install the ExchangeOnlineManagement module if needed, run Import-Module ExchangeOnlineManagement, and then run Connect-ExchangeOnline. Sign in with an account that has the required permissions.

Can I find a public folder using its email address?

For a mail-enabled public folder, run Get-MailPublicFolder -Identity "address@example.com" | Format-List * to inspect its details. Verify the folder path with Get-PublicFolder -Recurse before using the path in an item statistics command.

What is the difference between folder details and item statistics?

Get-PublicFolder returns folder properties. Get-PublicFolderItemStatistics returns statistics for items in the specified folder. Choose the command based on what the report needs to show.

Where is the exported CSV file saved?

If you specify only a filename in Export-Csv -Path, PowerShell saves it in the current working folder. Run Get-Location to see that folder, or provide a full file path in the command.

Does the item statistics report show public folder activity?

Get-PublicFolderItemStatistics provides item-level statistics, not a complete activity report. Define the activity or mailbox information you need separately and select the appropriate Exchange reporting tools.