Reporting on public folder statistics
Since the public folder structure got created in the earlier recipe, it's now time to gather some public folder statistics and information about their contents.
This is basically done using the Get-Mailbox
and Get-PublicFolderStatistics
cmdlets.
In this recipe, we will also take a look at exporting the statistics to a CSV file, and finally, we will check out the quota settings.
How to do it...
The following commands will retrieve statistics about the public folder structure:
Get-Mailbox –PublicFolder | Get-MailboxStatistics | ` FT DisplayName, TotalItemSize -AutoSize Get-PublicFolderStatistics | FT Name, ` ItemCount, TotalItemSize, TotalDeletedItemSize, ` FolderPath, MailboxOwnerId -AutoSize Get-Mailbox –PublicFolder | Get-MailboxStatistics | ` Select DisplayName, TotalItemSize | ` Export-CSV C:PF_Hierarchy.csv -Notype Get-PublicFolderStatistics | Select Name, ` ItemCount, TotalItemSize, TotalDeletedItemSize, FolderPath, ` MailboxOwnerId | Export-CSV C:PFs...