Get mailboxes sizes in Exchange 2007

Posted on 2011-03-15
Last Modified: 2012-08-14

Running Exchange 2007. I would like to get a list of mailboxes in a database and their sizes.

I can get the list of mailboxes fine, but getting their sizes is proving a bit difficult!

There is info in this article:

Get-MailboxStatistics | Sort-Object TotalItemSize –Descending | ft DisplayName,@{ expression={$_.TotalItemSize.Value.ToKB()}},ItemCount

Problem is, I am also returned disconnected mailboxes in the DB. Does anyone know how I can get 'live' mailboxes only?
Question by:kam_uk
  • 2
LVL 13

Expert Comment

by:Felix Leven
ID: 35142352
lets see:

this shows disconnected mailboxes:
Get-MailboxStatistics -Server | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate

Get-MailboxStatistics -Server | where { $_.DisconnectDate -eq $null } | select DisplayName,DisconnectDate

Author Comment

ID: 35142370

I think you misunderstood the question :) I need to find the mailbox sizes of non-disconnected mailboxes in a certain store?
LVL 13

Accepted Solution

Felix Leven earned 500 total points
ID: 35142546
yes, and this is an example how to select the non-disconnected mailboxes^^

Get-MailboxStatistics |  where { $_.DisconnectDate -eq $null } | Sort-Object TotalItemSize –Descending | ft DisplayName,@{ expression={$_.TotalItemSize.Value.ToKB()}},ItemCount

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

820 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