Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm looking for a quick way to obtain a per-user accounting of the size of the "Deleted Items" folder on an Exchange 2010 SP1 system. This is a recent migration, and I'm just trying to get an overview/baseline before implementing policy.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

This will get the deleted item size for all users, sort it and throw it in a table for you:

Get-Mailbox | Get-MailboxStatistics | sort TotalDeletedItemSize | ft DisplayName,TotalDeletedItemSize

and if you want to export to csv you need to change the "ft" to "Select-Object"

Get-Mailbox | Get-MailboxStatistics | sort TotalDeletedItemSize | Select-object DisplayName,TotalDeletedItemSize | export-csv filePath.csv

share|improve this answer
    
That works. Thank you! –  ewwhite May 31 '11 at 18:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.