So if you want to list the mailbox sizes on a Microsoft Exchange 2010 server open Exchange Management Shell and type the following

[cc lang=”powershell”]Get-MailboxStatistics -Server ‘servername’ | 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}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto[/cc]

and you get an ordered by size list of the mailboxes on the server.

Change servername to reflect your needs.