Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Show Mailboxes, Their Sizes, in Each Database

Posted on 2010-11-23
5
Medium Priority
?
5,432 Views
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.
0
Comment
Question by:CraigMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 7

Expert Comment

by:Exchange_Freak
ID: 34199530
Try this

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

0
 
LVL 17

Expert Comment

by:Viral Rathod
ID: 34199561
0
 
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}}
0
 
LVL 17

Accepted Solution

by:
Viral Rathod earned 2000 total points
ID: 34199621
0
 

Author Closing Comment

by:CraigMan
ID: 34201410
Thanks
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
In this video we show how to create an Address List 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 Organization >> Ad…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
Suggested Courses

650 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