?
Solved

view mailbox size for all Exchange uesrs, Exchange 2010

Posted on 2011-04-19
5
Medium Priority
?
1,004 Views
Last Modified: 2012-06-22
I want to run a command from the Exchange shell that will display all mailboxes in a DB from highest to lowest....

I've been trying stuff like:

Get-MailboxStatistics | ft DisplayName, TotalItemSize, ItemCount

but it prompts for an identity of a mailbox when I run this. Does anyone know how I can get all of the mailboxes at one time and spit it out to a file?
0
Comment
Question by:willlandymore
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:Gavincr001
ID: 35426240
Using powershell:

Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount
0
 
LVL 4

Expert Comment

by:Gavincr001
ID: 35426248
ignore that sorry, didnt read the whole question ;(
0
 
LVL 1

Accepted Solution

by:
willlandymore earned 0 total points
ID: 35427983
It's okay...I finally found it.

from the Exchange shell run:
==========
Get-MailboxStatistics -database ‘Exchange Mailbox Database’ | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}}  -auto >> “c:\mailbox_size.txt”
==========

That will output a file to the root of the C:\ drive, "Mailbox_size.txt". You may need to right-click on the shell and run it as administrator to be able to write to the c:\ drive.
0
 
LVL 1

Author Closing Comment

by:willlandymore
ID: 35455615
worked
0
 
LVL 4

Expert Comment

by:Gavincr001
ID: 35469806
Awesome!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

850 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