How to Show Mailboxes, Their Sizes, in Each Database

Posted on 2010-11-23
Medium Priority
Last Modified: 2012-05-10
Good morning experts,
I have an AD domain (2008 R2) with an Exchange 2010 mail server. I am looking for a Powershell script that will show all of the databases, and list the mailboxes and sizes within each database. The output I desire is csv, although print to the screen is ok also.
Question by:CraigMan
  • 3

Expert Comment

ID: 34199530
Try this

Get-DatabaseStatistics | Export-Csv c:\windows\temp\report.csv -Force -NoType

LVL 17

Expert Comment

by:Viral Rathod
ID: 34199561
LVL 17

Expert Comment

by:Viral Rathod
ID: 34199596
Try following power shell command to get the mailboxsize,total item, email address etc....

Get-Mailbox -server EXCH14-MBX1 | Select-Object name,primarysmtpaddress, DisplayName,Database,@{n="Size(MB)";e =
   {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize.value.toMB()}},@{n="Items"; e = {$MBXstat = Get-
    MailboxStatistics $_.name ; $MBXstat.itemcount}}
LVL 17

Accepted Solution

Viral Rathod earned 2000 total points
ID: 34199621

Author Closing Comment

ID: 34201410

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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.

Join & Write a Comment

The Exchange database may sometimes fail to mount owing to various technical reasons. A dismounted EDB file can be the source of many Exchange errors including mailbox inaccessibility for users. Resolving the root cause of mounting problems becomes …
A method of moving multiple mailboxes (in bulk) to another database in an Exchange 2010/2013/2016 environment...
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

586 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