List Mailbox Sizes for both Exchange 2003 and Exchange 2007
This is a script I put together because…well I don't remember what prompted me to write it. Who cares :)
This script uses the built-in cmdlets for Exchange 2007 find 2007 servers and legacy servers. It then uses WMI to talk to the legacy servers to get the mailbox sizes. Technically, this script requires Exchange 2007 Management tools to be installed to even get this kicked off. It wouldn't be very difficult to have it check for the existence or registration of the Exchange snap-in and behave differently if it were run on an a non Exchange 2007 server (or tools machine). It would require PowerShell to be installed. Moral of the story, it should be able to made to work against just Exchange 2000 and 2003 without 2007.
I am going to confess, I haven't been able to test this extensively. If anyone out there runs into issues with it, let me know and I can get it fixed up. I asked a few colleagues, but they all are bums and didn't test it for me. :)
Let me know what you think either way.
Here is the sample code:
|
-Gary
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.
Comments
Anonymous
January 01, 2003
I love that four and a half years later this post keeps on giving. Glad its helping you folks.Anonymous
January 01, 2003
The comment has been removedAnonymous
April 29, 2013
your code is formatted really poorly.Anonymous
May 01, 2013
Gary, I just thought I'd let you know this code helped me craft a move mailbox strategy capturing the small mailboxes first and moving the legacy Exchange 2003 boxes to 2010. This was helpful code. Thanks, NickAnonymous
August 19, 2013
Hi Gary, I thought I would follow up on Nick's comment and say how helpful this script is. Thanks for posting it. JTAnonymous
August 29, 2013
Thanks Gary.. It helped me formulate a strategy for a migration project. I would though like to to have "StorageLimitInfo" included in the final result for every user . Can you please guide how to ?Anonymous
October 24, 2013
Lol. It seems this is more popular now. Id guess thats because Ex2003 is nearing end of life.Anonymous
January 16, 2014
Thanks Gary, weirdly enough this is exactly what I was looking for :)Anonymous
January 29, 2014
Thanks a lot Garry, its very useful and so simple to understand tahnk you once againAnonymous
June 18, 2014
Thanks. Works well with Exchange 2010 and 2003.
I've added it to a script puts the data in boxes, adds a bit of colour and emails it as a weekly report.
Nice work.Anonymous
July 18, 2014
worked as espected. ThanksAnonymous
July 27, 2014
Thank Gary,
Great script. It was a real big help.Anonymous
March 11, 2015
We STILL have customers that are using Exchange Server 2003. Thanks very much for the script; it really helped with the migration.