Need a powershell script for mailbox size on Exchange 2010

We are using Exchange 2010 SP1.  Is there a way to output the mailbox user and size of each mailbox for all the mailboxes on a storage group?
TPBPITAsked:
Who is Participating?
 
Raheman M. AbdulConnect With a Mentor Senior Infrastructure Support Analyst & Systems DeveloperCommented:
Try the script:

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, @{name="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount | Export-Csv "UserMailboxSizes.csv" -NoTypeInformation
0
 
TPBPITAuthor Commented:
CLose, but I also need the database that the mailbox belongs to outputed in this.
0
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, @{name="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount, Database | Export-Csv "UserMailboxSizes.csv" -NoTypeInformation
0
 
yo_beeDirector of Information TechnologyCommented:
0
 
TPBPITAuthor Commented:
Thanks for the quick responses.  I'm new to the whole powershell world and have a lot to learn.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.