{"id":7093,"date":"2016-12-03T17:01:07","date_gmt":"2016-12-03T23:01:07","guid":{"rendered":"http:\/\/www.highclouder.com\/?p=7093"},"modified":"2024-05-21T14:49:52","modified_gmt":"2024-05-21T14:49:52","slug":"office365-size-users-mailbox","status":"publish","type":"post","link":"https:\/\/www.highclouder.com\/?p=7093","title":{"rendered":"Office365: What Is The Size Of Users Mailbox?"},"content":{"rendered":"<pre>Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name=\"TotalItemSize (GB)\";expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(\"(\")[1].Split(\" \")[0].Replace(\",\",\"\")\/1GB),2)}},ItemCount | Sort \"TotalItemSize (GB)\" -Descending<\/pre>\n<p>If we need to export the results into CSV file:<\/p>\n<pre>Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name=\"TotalItemSize (GB)\";expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(\"(\")[1].Split(\" \")[0].Replace(\",\",\"\")\/1GB),2)}},ItemCount | Sort \"TotalItemSize (GB)\" -Descending | Export-CSV C:\\TMP\\Office365-MailboxSize-Report.csv<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name=&#8221;TotalItemSize (GB)&#8221;;expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(&#8220;(&#8220;)[1].Split(&#8221; &#8220;)[0].Replace(&#8220;,&#8221;,&#8221;&#8221;)\/1GB),2)}},ItemCount | Sort &#8220;TotalItemSize (GB)&#8221; -Descending If we need to export the results into CSV file: Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name=&#8221;TotalItemSize (GB)&#8221;;expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(&#8220;(&#8220;)[1].Split(&#8221; &#8220;)[0].Replace(&#8220;,&#8221;,&#8221;&#8221;)\/1GB),2)}},ItemCount | Sort &#8220;TotalItemSize (GB)&#8221; -Descending | Export-CSV C:\\TMP\\Office365-MailboxSize-Report.csv<\/p>\n","protected":false},"author":1,"featured_media":7095,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[63,64,16,65,8],"class_list":["post-7093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-exchange-2016","tag-mailbox-sizes","tag-office-365","tag-office365","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/posts\/7093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7093"}],"version-history":[{"count":1,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/posts\/7093\/revisions"}],"predecessor-version":[{"id":7222,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/posts\/7093\/revisions\/7222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=\/wp\/v2\/media\/7095"}],"wp:attachment":[{"href":"https:\/\/www.highclouder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.highclouder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}