Solved

display all mailboxes by size

Posted on 2013-11-29
6
270 Views
Last Modified: 2013-12-03
I am looking for a powershell command that will display all mailboxes in all servers databases and sort them by size, from the larger size to smaller size.

I know that this can be done by dumping the output to Excel file then using Excel to sort them put.

I wonder if there is powershell combination command that can achieve the same thing.

Thank you
0
Comment
Question by:jskfan
6 Comments
 
LVL 13

Assisted Solution

by:duncanb7
duncanb7 earned 50 total points
ID: 39686398
Did you read those related articles before  that might help on your issue ?

http://exchangeserverpro.com/powershell-tip-get-list-top-exchange-server-mailboxes-size/
http://www.petri.co.il/create-exchange-2010-mailbox-size-reports-powershell.htm


Hope understand your question completely, if not please point it out

Duncan
0
 
LVL 57

Assisted Solution

by:Pete Long
Pete Long earned 50 total points
ID: 39686782
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39688058
Use the following command below to accomplish this...

get-mailbox -ResultSize "unlimited" | Get-MailboxStatistics | sort -Property TotalItemSize | se
lect Displayname, TotalItemSize, TotalDeletedItemSize

Open in new window


Will.
0
Problems using Powershell and Active Directory?

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

 

Author Comment

by:jskfan
ID: 39691401
get-mailbox -ResultSize "unlimited" | Get-MailboxStatistics | sort -Property TotalItemSize | se
lect Displayname, TotalItemSize, TotalDeletedItemSize


This worked...is there a switch to add to dump the output into a text file ?

Thank you
0
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 400 total points
ID: 39691404
Yes... Use the following command below...

get-mailbox -ResultSize "unlimited" | Get-MailboxStatistics | sort -Property TotalItemSize | se
lect Displayname, TotalItemSize, TotalDeletedItemSize | out-file "c:\mailboxstats.txt"

Will.
0
 

Author Closing Comment

by:jskfan
ID: 39693612
Excellent!!
Thank you
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

830 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