Solved

Need a powershell script for mailbox size on Exchange 2010

Posted on 2011-09-22
5
439 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
ID: 36580098
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
ID: 36580131
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
ID: 36580161
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 22

Expert Comment

by:yo_bee
ID: 36580189
0
 

Author Closing Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
'Cert OK' on www.checkctls.com failed for main mx record 1 34
exchange ,script 10 43
Exchange Management Shell dysfunctional - 0x8009030e 24 44
Exchange Certificate 5 40
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

772 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