Sort Exchange 2007 mailboxes by size

Very quick post to note that in Exchange 2007 command shell, you can use the "get-mailboxstatistics" command to have a lot of stats about mailboxes.

You can also use this command to sort all mailboxes by size using :

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,StorageLimitStatus,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}},ItemCount