{"id":825,"date":"2018-03-05T16:33:00","date_gmt":"2018-03-05T16:33:00","guid":{"rendered":"http:\/\/ihni.uk\/?p=825"},"modified":"2018-03-05T16:33:00","modified_gmt":"2018-03-05T16:33:00","slug":"get-exchange-mailbox-database-statistics","status":"publish","type":"post","link":"https:\/\/ihni.uk\/?p=825","title":{"rendered":"Get Exchange Mailbox Database Statistics"},"content":{"rendered":"<p>Very Simple powershell script to pullback information regarding your Exchange Environments Mailbox DBs.<\/p>\n<p><!--more-->[cc lang=&#8221;powershell&#8221;]<\/p>\n<p># Script to get the following:<\/p>\n<p># &#8211; Users in Each Mail DB<\/p>\n<p># &#8211; Number of Mail Items<\/p>\n<p># &#8211; Total Item Size<\/p>\n<p># &#8211; Current Mailbox DB<\/p>\n<p># &#8211; Current Mailbox Server<\/p>\n<p>#<\/p>\n<p># Colate All information and give full size of DB and total number of items in the DB.<\/p>\n<p>Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;<\/p>\n<p>Get-mailbox -resultsize unlimited |`<\/p>\n<p>Get-mailboxstatistics |`<\/p>\n<p>Select DisplayName,TotalItemSize,Itemcount,Database,ServerName |`<\/p>\n<p>Export-csv &#8220;C:\\Steria\\Get-MailboxesinOU results.csv&#8221; -NoTypeInformation<\/p>\n<p>[\/cc]<\/p>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Very Simple powershell script to pullback information regarding your Exchange Environments Mailbox DBs.<\/p>\n","protected":false},"author":1,"featured_media":988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,19,11],"tags":[],"class_list":["post-825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exchange","category-powershell","category-scripts"],"jetpack_featured_media_url":"https:\/\/ihni.uk\/wp-content\/uploads\/2020\/02\/Powershell.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/posts\/825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihni.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=825"}],"version-history":[{"count":0,"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/posts\/825\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ihni.uk\/index.php?rest_route=\/wp\/v2\/media\/988"}],"wp:attachment":[{"href":"https:\/\/ihni.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihni.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihni.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}