Reporting on mailbox database size

It was quite difficult in Exchange 2007 to determine the size of a mailbox database using PowerShell. At that time, the Get-MailboxDatabase cmdlet did not return the size of the database, and instead, you had to use the cmdlet to determine the path to the EDB file and calculate the file size using the Get-Item cmdlet or WMI. With Exchange 2010, this was changed and determining size information was made very simple so that the information could easily be retrieved using the Get-MailboxDatabase cmdlet. In this recipe, we will take a look at how to report on mailbox database size using the Exchange Management Shell for Exchange 2013.

How to do it...

To retrieve the total size for each mailbox database, use the following ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.