Exchangemaster GmbH company logo

Exchangemaster GmbH - A Swiss IT Consultancy
Services
References
Partners
Contact
Getting Started
FAQs
Presentations
Articles
Community
Search
Popular
Tell-a-Friend
Follow Me

Follow exchangemaster on Twitter

Who's Online
We have 40 guests online
Syndicate
FAQ 000093 - Use PowerShell to Report on database whitespace PDF Print E-mail
User Rating: / 20
PoorBest 
Written by Dejan Foro   
Feb 03, 2012 at 06:18 PM

This article applies to:
Exchange 2010 SP1, Rollup Update 5
PowerShell 2.0

You can use the following PowerShell one liner to get a report on available whitespace in mailbox databases: 

Get-MailboxDatabase -Status | Where {$_.Recovery -eq $False} | Select-Object Server, Name, AvailableNewMailboxSpace | Sort-Object Server, Name | Format-Table -AutoSize

It produces a report similar to following:

Server           Name                      AvailableNewMailboxSpace
------           ----                      ------------------------
EXCHANGE01       Mailbox Database 011      1.695 GB (1,820,164,096 bytes)
EXCHANGE01       Mailbox Database 012      1.719 MB (1,802,240 bytes)
EXCHANGE03       Mailbox Database 015      123.3 MB (129,302,528 bytes)
EXCHANGE03       Mailbox Database 016      2.219 MB (2,326,528 bytes)

Whitespace is space left over in the database after deletions. It is automatically reasigned to new mailboxes. You can recover this space and reduce the database in size by performing an offline database defragemntation. This value actually indicates how much space you can regain.

Last Updated ( Feb 03, 2012 at 12:57 PM )
<Previous   Next>