Reporting Storage Size in Microsoft Exchange

Posted on January 8, 2009 by Daniel Petri in Exchange Server with 0 Comments

In a great blog entry by Michael B. Smith, he has outlined a scripted method of obtaining the Mailbox and Public Folder store sizes on all Exchange servers in your organization.

As Michael explains, it is a common request is to find out how much disk space Exchange is using in all of the various EDB and STM files spread out everywhere. By running Michael’s fine script, you will get an output similar to this (I’ve used Michael’s own report, as I do not have a test environment with more than one server right now):

As you see, this text report (which can easily be piped into a file) gives you some nice information about your servers, store locations, and store sizes. For each storage group a subtotal is generated, for each server a subtotal is generated, and for the entire organization a total is generated. This presents a nice little hierarchical view of your storage usage.

The script should work on Exchange 2000, 2003, and 2007, but in order to use it you also need to create some more script files that can be found in another of Michael’s posts. However some readers asked me if I could help them in understanding what these scripts do and how to use them. I will not go into technical details on how these scripts work, the author does a much better job than me, but I can help by creating the scripts for you, placing them into a zipped file, and adding a simple installing batch.

So, here goes. Download the attached (10kb). Extract it by using WinZip or similar, and run the enclosed batch file. It’ll create the right folder structure on your server.

When done, go to the %Systemdrive%\Scripts folder and run the following command:



Michael’s meanderings…

Finding disk space used by Exchange

Utility Libraries for Exchange Scripting