{"id":2313,"date":"2017-08-09T19:52:06","date_gmt":"2017-08-09T19:52:06","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2313"},"modified":"2017-08-09T19:52:06","modified_gmt":"2017-08-09T19:52:06","slug":"powershell-code-get-mailboxes-with-size-greater-than-x","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2313","title":{"rendered":"PowerShell Code: Get Mailboxes with Size Greater Than X"},"content":{"rendered":"<p>Today, I\u2019ll show you another classic PowerShell Code for Exchange Server that will let you search for users with a mailbox size of X and above.<span id=\"more-16011\"><\/span><\/p>\n<p>I came across the need to do this when I had to rebalance mailboxes on Exchange Server and wanted to know which users have mailboxes over 5GB.<\/p>\n<p>The code below. Will show you all the mailboxes with total size of 5GB and above on a specific database.<\/p>\n<pre>get-mailbox -database mbx01 | Get-MailboxStatistics | where {$_.TotalItemSize -ge 5GB}<\/pre>\n<p>To search all the mailboxes In the organization use the code below:<\/p>\n<pre>get-mailbox -resultsize unlimited | Get-MailboxStatistics | where {$_.TotalItemSize -ge 5GB}<\/pre>\n<div id=\"jp-relatedposts\" class=\"jp-relatedposts\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today, I\u2019ll show you another classic PowerShell Code for Exchange Server that will let you search for users with a mailbox size of X and above. I came across the need to do this when I had to rebalance mailboxes on Exchange Server and wanted to know which users have mailboxes over 5GB. The code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,22,58,62,59],"tags":[],"class_list":["post-2313","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-2010","category-exchange-2013","category-microsoft-exchange-server-2016","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2313"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2313\/revisions"}],"predecessor-version":[{"id":2314,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2313\/revisions\/2314"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}