Solved

How to show the top 10 biggest Exchange Server 2010 mailbox capacity using Powershell ?

Posted on 2014-11-26
6
207 Views
Last Modified: 2014-12-14
Hi People,

Can anyone here please assist me in modifying the script below to get the number of mailbox size in Gigabytes ?

Get-MailboxServer | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label="Size(GB)"; Expression={$_.TotalItemSize.Value.ToGB()}}, Database, LastLogoffTime, DeletedItemCount, DisconnectDate | Select -First 13 | ft -auto

because when I executed the script above, it returns blank.

Thanks in advance.
0
Comment
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:vSolutionsIT
ID: 40468374
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 40468393
hi, the Size in GB doesn't show up still ?
0
 
LVL 31

Accepted Solution

by:
Gareth Gudger earned 500 total points
ID: 40468517
Hey IT,

I confirmed the commands in the article vSolutions linked worked on my 2010 server.

Did you miss some of the command perhaps? I'll paste it here.

Get-Mailbox -Server YOURSERVERNAMEHERE | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label="Size(Gb)"; Expression={$_.TotalItemSize.Value.ToGb()}} -First 10 | ft -auto
0
Is Your AD Toolbox Looking More Like a Toybox?

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.

 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 40468570
My exchange servers are two stand alone mailbox servers, so there is no cluster name.
0
 
LVL 31

Expert Comment

by:Gareth Gudger
ID: 40468576
My lab is a standalone 2010 SP1 box. That command should work for you on SP2. Replace, YOURSERVERNAME with the name of your Exchange server.
0
 
LVL 7

Author Closing Comment

by:Senior IT System Engineer
ID: 40498653
Thanks !
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

808 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