Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Reporting on public folder statistics


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.

How to do it...

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:

How it works...

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