Create a Public Folder Report in Exchange Online PowerShell
Question details
Create an Exchange Online report for a public folder using its folder path or email address.

- 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.
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.
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.
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.
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.
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.
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.
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.

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.

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.




