Exchange 2010 – Determine Mailbox Sizes With Powershell
Below is a quick snippet for retrieving mailboxes sizes for all mailboxes in a specific mailbox database:
Get-MailboxDatabase -Identity "EXAMPLE" | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}} -auto