Exchange – Get mailbox sizes

[sgmb id=”1″] [sgmb id=”3″] [sgmb id=”2″] [sgmb id=”4″] [sgmb id=”5″]

Problem
You need to capture the size of all mailboxes in your exchange installation

Solution
In exchange power shell window execute the following command

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(KB)”;expression={$_.TotalItemSize.Value.ToKB()}},ItemCount

For GB change the $_.TotalItemSize.Value.ToKB()} to $_.TotalItemSize.Value.ToGB()} and the display name from TotalItemSize(KB) to TotalItemSize(GB)

Tested Platform
Exchange 2010
Exchange 2007
Windows 2008 R2

Hits: 32

Leave a Reply