I have been doing some work recently on pulling capacity management information from Exchange 2010 using PowerShell. One requirement that I needed to satisfy was returning the physical size of all Exchange Database files within the organisation. There are a number of examples of how this can be done when you have a look around the Internet – however I found them (personally) to be a bit complex – or part of a wider script that can be hard to extract what you need from.
So I decided write my own version which can be modified to accommodate your own purposes.
The following script is a slightly modified version what I came up with for my capacity management assignment:
Using the script
You can download the script above from the following location:
You should execute the script from an Exchange Server in your Infrastructure using the guidance that I have provided here: http://www.telnetport25.com/2012/02/quick-tip-running-exchange-based-powershell-script-files-from-the-command-line-or-a-batch-file/
Successful execution of the script will produce output similar to that below.
The script is provided free for you to modify / use how you see fit – there are many modifications that can be made – for example:
- Port the output to HTML
- E-Mail the sizes to an administrator