The Exchange Management Shell provides two cmdlets that can be used to generate detailed reports based on the usage of your public folders. In this recipe, we will take a look at how to report on public folder statistics.
To generate a basic report for each public folder, run the following cmdlet:
Get-PublicFolderStatistics | ft Name,ItemCount,TotalItemSize
This command would generate an output similar to the following example:
As you can see, Get-PublicFolderStatistics
provides some very useful and detailed information for each public folder. In addition, you can report on individual items within each folder using the Get-PublicFolderItemStatistics
cmdlet. This cmdlet will return each item within a specified public folder and contains detailed information about each item including message size, creation time, last access time, and whether or not it contains an attachment.
You can use the output of the Get-PublicFolderItemStatistics...