Tuesday 24 July 2012

Script For Folder Item Count



I have been using the below exchange management command for the folders item count.


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


Since there are different folder item limits for each version of Exchange, I thought it might be beneficial to write a script that could analyze folders on all versions, and determine if they were over their limit. The limits are as follows:

 

Version                                      Folder Item Count


Exchange 2003                               5,000

Exchange 2007                               20,000

Exchange 2010                               100,000




Regards,
Sankar M

No comments:

Post a Comment