Wednesday, April 6, 2011

Exchange 2007 MailboxSize

From time to time we have to look report on the size of user Mailboxes, so this script will report the size of each mailbox. You can change the "TotalitemSize(MB) to GB if you want to report as Gigs.  The default is repoarted as kb.  This reports on a per mailbox server bases.

I like to write the results to a text file, that way I can then compare the text files using compare-object cmdlet to see how MailboxSize change. 

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}},ItemCount | out-file C:\temp\mb1.txt

No comments:

Post a Comment