Using PowerShell to view the Available White Space in an Exchange 2010 Database

Hi All,

In this blog I will show you how to view the amount of available white space in an Exchange 2010 database. When items are removed from the Exchange database, the space that is freed up in the database is called white space. Exchange will use the available white space in it’s database for new database content before having to grow the size of the database. In earlier versions of Exchange, after the online defrag of an Exchange database was completed, event 1221 was logged in the event viewer which would give the amount of available white space. In Exchange 2010 this process is running 24×7 so an event is not logged. There is an easy way to find out the amount of white space by running the following commands in the Exchange Management Shell:

The following command will give you the amount of white space for a single Exchange database (Replace MyDatabaseName with the name of your database):

Get-MailboxDatabase MyDatabaseName -Status | select AvailableNewMailboxSpace

If you want to find out the available white space for all of your Exchange databases you can run the following command:

Get-MailboxDatabase -Status | select Identity,AvailableNewMailboxSpace

This next command will give you the amount of available white space for each database and list the server the database is mounted on (in a DAG scenario it will list the server the active copy of the database is running on):

Get-MailboxDatabase -Status | select Identity,servername,AvailableNewMailboxSpace

I hope this blog was helpful. If you have any feedback or questions please feel free to leave a comment.

 

 

 

 

 

 

 

Share Button
Author: BC

BC is a Pipe2text.com contributor and has been an IT Professional for 15 years. He currently works as a Sr. Systems Engineer at a private firm. He enjoys working with Active Directory, Exchange and VMware among other technologies.


Leave a Reply

Your email address will not be published. Required fields are marked *