Hi,<\/p>\n
i have the report “exchange info” and am trying to get a report of current mailbox size, and max currently allowed size per user.<\/p>\n
My exchange is talking properly to spiceworks, i get all the current mailbox size, but i don’t see the “allowed size” currently. Is there a way to see both the current size and the max size side by side to help know if the user is close to its limit?<\/p>\n
here is the script i currently use:<\/p>\n
--Created 3/17/09 by Ben Brookshire, Spiceworks Inc.\n--Copyright Spiceworks, Inc. 2009-12\n--v0.2 - added StoragePath info\n--v0.3 (2/17/2010)- added ORDER BY Size\n--v0.4 (9/7/2010) - convert size in graph to MB, added CASE to determine GB/MB/KB sizing\n--v0.4.1 - fixed conversions to actually be GB/MB/KB\n--v0.5 - add filter to remove smaller mailboxes\n\nSELECT mb.display_name as Name,\n mb.size/(1024*1024) as \"Size (MB)\",\n --mb.size as \"SizeOLD\",\n CASE\n WHEN mb.size >= (1024.0*1024.0*1024.0) THEN round(cast(mb.size/(1024.0*1024.0*1024.0) as real),2) || \" GB\"\n WHEN mb.size >= (1024.0*1024.0) THEN round(cast(mb.size/(1024.0*1024.0) as real),2) || \" MB\"\n ELSE cast(mb.size/(1024.0) as real) || \" KB\"\n END as Size,\n mb.total_items as TotalItems,\n mb.last_logon as LastLogon,\n mb.storage as StoragePath,\n m.name as ExchangeServer\n\nFROM microsoft_exchange_mailboxes mb\n\nJOIN microsoft_exchanges m\n ON (m.computer_id = mb.computer_id)\n\n --WHERE (mb.size/(1024.0*1024.0)) > 50 -- filter mailboxes smaller than 50MB\n\nORDER BY \"Size (MB)\" DESC;\n\n<\/code><\/pre>","upvoteCount":6,"answerCount":5,"datePublished":"2019-09-04T10:15:29.000Z","author":{"@type":"Person","name":"spiceuser-sl9nn","url":"https://community.spiceworks.com/u/spiceuser-sl9nn"},"acceptedAnswer":{"@type":"Answer","text":"That is exactly what the script I sent you does. Schedule it to run as a scheduled task and it will email you a report of the mailboxes. Everything is possible with Powershell, especially in Exchange.<\/p>","upvoteCount":1,"datePublished":"2019-09-04T10:27:25.000Z","url":"https://community.spiceworks.com/t/exchange-mailbox-size-report/728491/4","author":{"@type":"Person","name":"davidr4","url":"https://community.spiceworks.com/u/davidr4"}},"suggestedAnswer":[{"@type":"Answer","text":"
Hi,<\/p>\n
i have the report “exchange info” and am trying to get a report of current mailbox size, and max currently allowed size per user.<\/p>\n
My exchange is talking properly to spiceworks, i get all the current mailbox size, but i don’t see the “allowed size” currently. Is there a way to see both the current size and the max size side by side to help know if the user is close to its limit?<\/p>\n
here is the script i currently use:<\/p>\n
--Created 3/17/09 by Ben Brookshire, Spiceworks Inc.\n--Copyright Spiceworks, Inc. 2009-12\n--v0.2 - added StoragePath info\n--v0.3 (2/17/2010)- added ORDER BY Size\n--v0.4 (9/7/2010) - convert size in graph to MB, added CASE to determine GB/MB/KB sizing\n--v0.4.1 - fixed conversions to actually be GB/MB/KB\n--v0.5 - add filter to remove smaller mailboxes\n\nSELECT mb.display_name as Name,\n mb.size/(1024*1024) as \"Size (MB)\",\n --mb.size as \"SizeOLD\",\n CASE\n WHEN mb.size >= (1024.0*1024.0*1024.0) THEN round(cast(mb.size/(1024.0*1024.0*1024.0) as real),2) || \" GB\"\n WHEN mb.size >= (1024.0*1024.0) THEN round(cast(mb.size/(1024.0*1024.0) as real),2) || \" MB\"\n ELSE cast(mb.size/(1024.0) as real) || \" KB\"\n END as Size,\n mb.total_items as TotalItems,\n mb.last_logon as LastLogon,\n mb.storage as StoragePath,\n m.name as ExchangeServer\n\nFROM microsoft_exchange_mailboxes mb\n\nJOIN microsoft_exchanges m\n ON (m.computer_id = mb.computer_id)\n\n --WHERE (mb.size/(1024.0*1024.0)) > 50 -- filter mailboxes smaller than 50MB\n\nORDER BY \"Size (MB)\" DESC;\n\n<\/code><\/pre>","upvoteCount":6,"datePublished":"2019-09-04T10:15:29.000Z","url":"https://community.spiceworks.com/t/exchange-mailbox-size-report/728491/1","author":{"@type":"Person","name":"spiceuser-sl9nn","url":"https://community.spiceworks.com/u/spiceuser-sl9nn"}},{"@type":"Answer","text":"If you have exchange, it would be easier to just get the info straight from there via Powershell. Here is a good Mailbox Report script<\/p>\n
https://gallery.technet.microsoft.com/scriptcenter/Generate-Mailbox-Size-and-3f408172<\/a><\/p>","upvoteCount":1,"datePublished":"2019-09-04T10:21:59.000Z","url":"https://community.spiceworks.com/t/exchange-mailbox-size-report/728491/2","author":{"@type":"Person","name":"davidr4","url":"https://community.spiceworks.com/u/davidr4"}},{"@type":"Answer","text":"I know, but i want to program a weekly report sent by email. as far as i know this isnt possible through powershell<\/p>","upvoteCount":0,"datePublished":"2019-09-04T10:23:15.000Z","url":"https://community.spiceworks.com/t/exchange-mailbox-size-report/728491/3","author":{"@type":"Person","name":"spiceuser-sl9nn","url":"https://community.spiceworks.com/u/spiceuser-sl9nn"}},{"@type":"Answer","text":"
Agree with davidr4‘s suggestions.<\/p>\n
You can combine the scripts and task schedule to generate a weekly report. About configuring task schedule for your reference: Automate Mailbox Size Reporting in Office 365<\/a><\/p>","upvoteCount":0,"datePublished":"2019-09-05T03:57:28.000Z","url":"https://community.spiceworks.com/t/exchange-mailbox-size-report/728491/5","author":{"@type":"Person","name":"joz","url":"https://community.spiceworks.com/u/joz"}}]}}