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
http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010/

It has ready to use script with video also.
0
MAS (MVE)EE Solution Guide - Technical Dept HeadCommented:
Please check my script. if you have doubt please let me know.
https://gallery.technet.microsoft.com/exchange/Email-statistics-including-e9cb1b26

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

0
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.
1
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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...
result.jpg
0
Nathan LindleyIT Support EngineerAuthor Commented:
Also Amit, will I be able to get some sort of report, or export anything from this, once working?
0
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'
PS.jpg
0
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
0

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*
0
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
Exchange

From novice to tech pro — start learning today.