{"id":168,"date":"2012-01-24T01:28:45","date_gmt":"2012-01-24T01:28:45","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=168"},"modified":"2012-01-24T02:28:19","modified_gmt":"2012-01-24T02:28:19","slug":"168-2","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=168","title":{"rendered":"Exchange MB Info"},"content":{"rendered":"<p>The ability to gather mailbox information in Exchange 2007 and 2010 was vastly improved via Powershell.\u00a0 As Exchange engineers we&#8217;ve been tasked with retrieving various informational reports on user mailboxes. The scripts you will find\u00a0below were created specifically for this purpose.<\/p>\n<p>In the example script below we&#8217;ve split reporting out into 2 categories. In the first one we pull information on all mailboxes where &#8220;customattribute7&#8221; does not contain the word exempt. This script gathers a user&#8217;s display name , total item counts per mailbox, and overall mailbox size. It converts the mailbox size information into MB format and finally puts the information into a text file located on our file server.<\/p>\n<p>Get-Mailbox | where { $_.customattribute7 -ne &#8220;exempt&#8221; } | Get-MailboxStatistics | select displayname, itemcount, TotalItemSize | sort-object totalitemsize -descending | format-table displayname, itemcount, @{expression= {$_.TotalItemSize.value.ToMB()};label=&#8221;TotalItemSize(MB)&#8221;} -Auto &gt; &#8220;<a href=\"file:\/\/\\\\ncusnyna02\\IT\\Quest\">\\\\fileserver\\reports\\mailboxinfo.txt<\/a>&#8221;<\/p>\n<p><strong>Example Output:<\/strong><\/p>\n<p><strong>DisplayName\u00a0\u00a0\u00a0\u00a0 ItemCount\u00a0\u00a0\u00a0\u00a0 TotalItemSize(MB)<\/strong><\/p>\n<p><strong>Test,\u00a0User\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 32327\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1437<\/strong><\/p>\n<p>The second script performs exactly the same function except it will report on only users where &#8220;customattribute7&#8221; contains the word exempt<\/p>\n<p>Get-Mailbox | where { $_.customattribute7 -eq &#8220;exempt&#8221; } | Get-MailboxStatistics | select displayname, itemcount, TotalItemSize | sort-object totalitemsize -descending | format-table displayname, itemcount, @{expression= {$_.TotalItemSize.value.ToMB()};label=&#8221;TotalItemSize(MB)&#8221;} -Auto &gt; &#8220;<a href=\"file:\/\/\\\\ncusnyna02\\IT\\Quest\">\\\\fileserver\\reports\\mailboxinfo.txt<\/a>&#8221;<\/p>\n<p>More Mailbox Information commands will be posted shortly<\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The ability to gather mailbox information in Exchange 2007 and 2010 was vastly improved via Powershell.\u00a0 As Exchange engineers we&#8217;ve been tasked with retrieving various informational reports on user mailboxes. The scripts you will find\u00a0below were created specifically for this &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=168\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"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-168","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/168","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":10,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/168\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/168\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}