Skip to Main Content
Microsoft Exchange 2010 PowerShell Cookbook
book

Microsoft Exchange 2010 PowerShell Cookbook

by Mike Pfeiffer
July 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
11h 54m
English
Packt Publishing
Content preview from Microsoft Exchange 2010 PowerShell Cookbook

Reporting on mailbox database size

In Exchange 2007, it was actually quite difficult to determine the size of a mailbox database using PowerShell. 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. In Exchange 2010, determining this is very simple and the information can easily be retrieved using the Get-MailboxDatabase cmdet. In this recipe, we will take a look at how to report on mailbox database size using the Exchange Management Shell.

How to do it...

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

Get-MailboxDatabase -Status | select-object Name,DatabaseSize ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Jonas Andersson, Mike Pfeiffer

Publisher Resources

ISBN: 9781849682466Other