Solved

Need a powershell script for mailbox size on Exchange 2010

Posted on 2011-09-22
5
418 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:TPBPIT
5 Comments
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 250 total points
Comment Utility
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
 

Author Comment

by:TPBPIT
Comment Utility
CLose, but I also need the database that the mailbox belongs to outputed in this.
0
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 250 total points
Comment Utility
Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, @{name="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount, Database | Export-Csv "UserMailboxSizes.csv" -NoTypeInformation
0
 
LVL 21

Expert Comment

by:yo_bee
Comment Utility
0
 

Author Closing Comment

by:TPBPIT
Comment Utility
Thanks for the quick responses.  I'm new to the whole powershell world and have a lot to learn.
0

Featured Post

Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now