Reporting on public folder statistics

Since the public folder structure got created in the earlier receipt, it's now time for taking out statistics of the public folders and retrieving information about the contents.

This is basically done by 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 checking out the quota settings.

How to do it...

The following commands will give you the possibility to retrieve statistics information about the public folder structure:

Get-Mailbox –PublicFolder | Get-MailboxStatistics | ft `
DisplayName,TotalItemSize -AutoSize

Get-PublicFolderStatistics | ft Name,ItemCount,TotalItemSize,TotalDeleted `
ItemSize,FolderPath,MailboxOwnerId ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.