Exchange 2010 Mailbox sizes report

Hi Experts,

Please could somebody point me in the right direction to pulling a report from Exchange of all mailbox sizes? I am new to any exchange based commands, so I would appreciate if it is spelled out. Thanks People.
Nathan LindleyIT Support EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmitIT ArchitectCommented:
As you are new to PS. I would suggest you to use this KB

It has ready to use script with video also.
MASEE Solution Guide - Technical Dept HeadCommented:
Please check my script. if you have doubt please let me know.

If you think that is complicated please try below one
$mailbox = Get-Mailbox -ResultSize Unlimited
$(Foreach ($mbx in $mailbox){
$Stat = Get-MailboxStatistics $mbx.Alias
 $mbx | Select DisplayName,PrimarySmtpAddress,@{N="TotalItemSizeMB";E={$stat.TotalItemSize.value.toMB()}},@{N="ItemCount";E={$stat.ItemCount}}
})| Sort TotalItemSizeMB -Descending  | 
Select DisplayName,PrimarySmtpAddress,TotalItemSizeMB,ItemCount |
Export-Csv C:\Report.csv -NTI

Open in new window

Jeff GloverSr. Systems AdministratorCommented:
Even easier. If you just want Mailbox size, run this against each Exchange Mailbox database (in Powershell of course)
Get-Mailbox -Database "<name>" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount ><path to .txt file>

The Get-Mailbox part will get all the mailboxes in the specified database. Get-MailboxStatistics will uncover the attributes you want. Sort is just because I like to keep them in order by size. And we choose the displayname, total item size and item count to be in the output. We push it to a .txt file with the arrow>. Use a path like c:\mbx.txt.
Open the txt file in excel

But the script above works quite nicely also.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Nathan LindleyIT Support EngineerAuthor Commented:
Amit, I am trying to follow this tutorial, but when I attempt to run any command with that PS, I get the attached...
Nathan LindleyIT Support EngineerAuthor Commented:
Also Amit, will I be able to get some sort of report, or export anything from this, once working?
Nathan LindleyIT Support EngineerAuthor Commented:
IvJeff - how does this look, our Database is called Manchester, however I am getting the attached...

Get-Mailbox -Database "<Manchester>" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount ><C:\report.txt>

I get the attached 'PS.jpg'
Jeff GloverSr. Systems AdministratorCommented:
Sorry. The brackets<> are the way I show "replace this with your stuff"

Get-Mailbox -Database "Manchester" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount >C:\report.txt

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nathan LindleyIT Support EngineerAuthor Commented:
Absolute legend, exactly what I wanted! Thanks for the quick responses. 5 STAR*
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.