{"id":596,"date":"2012-04-07T14:15:53","date_gmt":"2012-04-07T14:15:53","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=596"},"modified":"2012-04-07T14:20:21","modified_gmt":"2012-04-07T14:20:21","slug":"using-powershell-to-view-the-available-white-space-in-an-exchange-2010-database","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=596","title":{"rendered":"Using PowerShell to view the Available White Space in an Exchange 2010 Database"},"content":{"rendered":"<p>Hi All,<\/p>\n<p>In this blog I will show you\u00a0how 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&#8217;s database for new database content\u00a0before having to grow the size of the database. In earlier versions of Exchange, after the online defrag of\u00a0an 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&#215;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:<\/p>\n<p>The following\u00a0command will give you the amount of white space for a single Exchange database (Replace <em>MyDatabaseName<\/em> with the name of your database):<\/p>\n<p>Get-MailboxDatabase <em>MyDatabaseName<\/em> -Status | select AvailableNewMailboxSpace<\/p>\n<p>If you want to find out the available white space for all of your Exchange databases you can run the following command:<\/p>\n<p>Get-MailboxDatabase -Status | select Identity,AvailableNewMailboxSpace<\/p>\n<p>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):<\/p>\n<p>Get-MailboxDatabase -Status | select Identity,servername,AvailableNewMailboxSpace<\/p>\n<p>I hope this blog was helpful. If you have any feedback or questions please feel free to leave a comment.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi All, In this blog I will show you\u00a0how 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 &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=596\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-596","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=596"}],"version-history":[{"count":7,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/596\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/596\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}