Solved

managing exch 2010 bd sizes

Posted on 2012-03-15
4
387 Views
Last Modified: 2012-03-15
How can I report on the size of ex2010 DBs, how many users are in each DB, size of their mailboxes etc?
0
Comment
Question by:DEFclub
[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
4 Comments
 
LVL 19

Assisted Solution

by:R--R
R--R earned 167 total points
ID: 37725406
0
 
LVL 7

Assisted Solution

by:ingetic
ingetic earned 166 total points
ID: 37725427
from : http://www.mikepfeiffer.net/2010/03/exchange-2010-database-statistics-with-powershell/

Total database size
Total number of mailboxes per database
Average mailbox size
Date and time of the last full backup
Amount of white space in the database

function Get-DatabaseStatistics {
    $Databases = Get-MailboxDatabase -Status
    foreach($Database in $Databases) {
        $DBSize = $Database.DatabaseSize
        $MBCount = @(Get-MailboxStatistics -Database $Database.Name).Count

        $MBAvg = Get-MailboxStatistics -Database $Database.Name |
          %{$_.TotalItemSize.value.ToMb()} |
            Measure-Object -Average            

        New-Object PSObject -Property @{
            Server = $Database.Server.Name
            DatabaseName = $Database.Name
            LastFullBackup = $Database.LastFullBackup
            MailboxCount = $MBCount
            "DatabaseSize (GB)" = $DBSize.ToGB()
            "AverageMailboxSize (MB)" = $MBAvg.Average
            "WhiteSpace (MB)" = $Database.AvailableNewMailboxSpace.ToMb()
        }
    }
}
0
 
LVL 17

Accepted Solution

by:
Gaurav Singh earned 167 total points
ID: 37725655
0
 

Author Closing Comment

by:DEFclub
ID: 37726355
thxs
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Manage Mobile Phones (devices) 6 66
Exchange OWA website Redirection 7 48
Purge \Deleted Items? 2 32
Restored mailboxes and OST 11 40
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Shared Mailbox 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 >> Sha…
This video discusses moving either the default database or any database to a new volume.

730 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