Get Exchange 2010 mailbox size for all users

Get Exchange 2010 mailbox size for all users with Get-MailboxStatistics.

Get-MailboxStatistics is a great EMS cmdlet for reporting on mailbox storage usage and the Export-CSV cmdlet gives you further options for manipulating and presenting the data. To get Exchange 2010 mailbox size for all users including the deleted items and export it to a CSV use the following in the Exchange Management Shell:

Get-MailboxStatistics -server "ServerName" | Sort TotalItemSize -Descending | select-object DisplayName, @{label="Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()}},@{label="Deleted Item Size (MB)";expression={$_.TotalDeletedItemSize.Value.ToMB()}} | Export-CSV filepath.csv

This can be further expanded upon by adding things like sent item size, last logon time, item count etc. You can also report by individual mailbox or database instead of server.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>