Find high item count folders using Exchange Management Shell

Working in Exchange Customer Service and Support, “we often see cases where user performance, or overall server performance, is impacted because of a high number of items in critical folders within user's mailboxes,” Mike Hendrickson. Here’s a simple Exchange Management Shell command to find all folders that’ve more than a certain number of items. Get-Mailbox […]

Working in Exchange Customer Service and Support, “we often see cases where user performance, or overall server performance, is impacted because of a high number of items in critical folders within user's mailboxes,” Mike Hendrickson. Here’s a simple Exchange Management Shell command to find all folders that’ve more than a certain number of items.

Get-Mailbox | Get-MailboxFolderStatistics | Where {$_.ItemsInFolder -gt 5000} | Sort-Object -Property ItemsInFolder -Descending | fl Identity, ItemsInFolder 

Above command finds all folders in Organization that’ve more than 5,000 items, sorts them in descending order, and then gives full Folder Path and Item Count. By modifying Get-Mailbox portion of command, you can target command to obtain mailboxes from specific Servers or Databases. Since there’re different folder item limits for each version of Exchange, check this script that could analyze folders on all versions, and determine if they were over their limit.