http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/getting-mailbox-statistics-exchange-2007.html<\/a><\/p>","upvoteCount":2,"datePublished":"2012-08-17T05:21:19.000Z","url":"https://community.spiceworks.com/t/list-of-exchange-2007-mailbox-sizes/160780/5","author":{"@type":"Person","name":"Huw3481","url":"https://community.spiceworks.com/u/Huw3481"}},{"@type":"Answer","text":"jay do have to put the database name and i seem to get this error when i do it to file<\/p>\n
<\/p>","upvoteCount":0,"datePublished":"2012-08-17T06:44:58.000Z","url":"https://community.spiceworks.com/t/list-of-exchange-2007-mailbox-sizes/160780/7","author":{"@type":"Person","name":"matthewwardle2754","url":"https://community.spiceworks.com/u/matthewwardle2754"}},{"@type":"Answer","text":"
You can, it appears by not entering a name and which the code then goes to check all of them it inadvertently picked a DB you have that is not mounted. So you would either need to mount that DB first or specify a DB.<\/p>\n
-Jay<\/p>","upvoteCount":0,"datePublished":"2012-08-17T06:50:11.000Z","url":"https://community.spiceworks.com/t/list-of-exchange-2007-mailbox-sizes/160780/8","author":{"@type":"Person","name":"jay6111","url":"https://community.spiceworks.com/u/jay6111"}},{"@type":"Answer","text":"
Get-MailboxStatistics -Server <exchange_server_name> | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=“TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount<\/p>","upvoteCount":0,"datePublished":"2012-08-17T07:09:40.000Z","url":"https://community.spiceworks.com/t/list-of-exchange-2007-mailbox-sizes/160780/9","author":{"@type":"Person","name":"markmcfarlane3046","url":"https://community.spiceworks.com/u/markmcfarlane3046"}},{"@type":"Answer","text":"
This worked a bit better for me FWIW.<\/p>\n
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount > C:\\Temp\\MailboxSize.txt\n<\/code><\/pre>\nLeave off the last bit if you want it to display on the screen instead of output to a file<\/p>\n
\nC:\\Temp\\MailboxSize.txt<\/p>\n<\/blockquote>","upvoteCount":1,"datePublished":"2016-09-14T18:21:58.000Z","url":"https://community.spiceworks.com/t/list-of-exchange-2007-mailbox-sizes/160780/10","author":{"@type":"Person","name":"newwave","url":"https://community.spiceworks.com/u/newwave"}}]}}
Hi guys i am looking for the easiest way to list of all the mailbox sizes for the users. My reports for spiceworks dont seem to work. I would prefer to do it through command prompt to text file or csv.
Thanks
3 Spice ups
Huw3481
(Huw3481)
August 17, 2012, 4:55am
2
You need to make a slight change for Spiceworks to work properly with Ex2007/2010
See http://community.spiceworks.com/help/Exchange_2007
1 Spice up
just looking at the requirements i dont have exchange server 2007 service pack 2. i am upgrading to exchange 2010 and need the mailbox sizes before i do this.
rockn
(Rockn)
August 17, 2012, 5:19am
4
Have you looked through the scripts on the site here? Three are quite a few.
Huw3481
(Huw3481)
August 17, 2012, 5:21am
5
Well, if you don’t fancy making any changes then you’re in to running Powershell cmdlets manually yourself.
Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount should give you total mailbox size and number of items.
There’s some nice detail in this article - http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/getting-mailbox-statistics-exchange-2007.html
2 Spice ups
jay6111
(Jay6111)
August 17, 2012, 6:41am
6
Quick and dirty on Exchange in the management shell,
Mailbox size sorted by largest exported to txt file
Get-MailboxDatabase “<insert database name or don’t enter one for all DB’s>” | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount (optional | Select –first 25) >> C:*name_of_file*.txt
-Jay
3 Spice ups
jay do have to put the database name and i seem to get this error when i do it to file
jay6111
(Jay6111)
August 17, 2012, 6:50am
8
You can, it appears by not entering a name and which the code then goes to check all of them it inadvertently picked a DB you have that is not mounted. So you would either need to mount that DB first or specify a DB.
-Jay
Get-MailboxStatistics -Server <exchange_server_name> | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=“TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount
newwave
(newwave)
September 14, 2016, 6:21pm
10
This worked a bit better for me FWIW.
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount > C:\Temp\MailboxSize.txt
Leave off the last bit if you want it to display on the screen instead of output to a file
C:\Temp\MailboxSize.txt
1 Spice up