Solved

Get mailboxes sizes in Exchange 2007

Posted on 2011-03-15
3
434 Views
Last Modified: 2012-08-14
Hi

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: http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/getting-mailbox-statistics-exchange-2007.html

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?
0
Comment
Question by:kam_uk
  • 2
3 Comments
 
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
0
 
LVL 3

Author Comment

by:kam_uk
ID: 35142370
Hi

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

Accepted Solution

by:
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
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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create a Contact 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 >> Contact ta…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

770 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