{"id":272,"date":"2014-06-19T17:44:58","date_gmt":"2014-06-19T15:44:58","guid":{"rendered":"http:\/\/exchangetimes.net\/?p=272"},"modified":"2014-06-19T17:44:58","modified_gmt":"2014-06-19T15:44:58","slug":"export-mailbox-sizes-in-exchange-2010-using-exchange-management-shell","status":"publish","type":"post","link":"https:\/\/exchangetimes.net\/?p=272","title":{"rendered":"Export mailbox sizes in Exchange 2010 using Exchange Management Shell"},"content":{"rendered":"<p>Thought I&#8217;d share two scripts today. I use both daily to export mailbox sizes to a csv file for reporting purposes.<\/p>\n<p>These scripts will export the following:<\/p>\n<p>User Display Name, Database where the mailbox is homed ,the mailbox&#8217;s \u00a0Total Item Size, Item Count in the mailbox and the Storage Limit Status<\/p>\n<p><strong>Export a report on mailbox sizes on a specific server:<\/strong><\/p>\n<p>Get-Mailbox \u2013Server <span style=\"color: rgb(0, 0, 255);\"><em>the server name<\/em><\/span> \u2013ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize, -Ascending | Export-CSV <span style=\"color: rgb(0, 0, 255);\"><em>driveletter:\\foldername\\reportname.csv<\/em><\/span><\/p>\n<p><strong>Export a report for mailboxes homed on all your mailbox servers:<\/strong><\/p>\n<p>Get-ExchangeServer -Domain <span style=\"color: #0000ff;\"><em>your domain name<\/em><\/span>\u00a0| Get-MailboxStatistics | sort TotalItemSize -Descending | select DisplayName, Database, StorageLimitStatus, @{label=&#8221;Total Size (MB)&#8221;;expression={$_.TotalItemSize.Value.ToMB()}}, @{label=&#8221;Deleted Item Size (MB)&#8221;;expression={$_.TotalDeletedItemSize.Value.ToMB()}} | epcsv <span style=\"color: #0000ff;\"><em>driveletter:\\foldername\\reportname.csv<\/em><\/span><\/p>\n<p>Obviously change -Ascending to -Descending so that the output is to your liking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thought I&#8217;d share two scripts today. I use both daily to export mailbox sizes to a csv file for reporting purposes. These scripts will export the following: User Display Name, Database where the mailbox is homed ,the mailbox&#8217;s \u00a0Total Item Size, Item Count in the mailbox and the Storage Limit Status Export a report on mailbox sizes on a specific server: Get-Mailbox \u2013Server the server name \u2013ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize, -Ascending | Export-CSV driveletter:\\foldername\\reportname.csv Export a report for mailboxes homed on all your mailbox servers: Get-ExchangeServer -Domain your domain name\u00a0| Get-MailboxStatistics | sort TotalItemSize -Descending | select DisplayName, Database, StorageLimitStatus, @{label=&#8221;Total Size (MB)&#8221;;expression={$_.TotalItemSize.Value.ToMB()}}, @{label=&#8221;Deleted Item Size (MB)&#8221;;expression={$_.TotalDeletedItemSize.Value.ToMB()}} | epcsv driveletter:\\foldername\\reportname.csv Obviously change -Ascending to -Descending so that the output is to your liking.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,205,4,7],"tags":[210,209,208,206,66,207],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-exchange-2010","category-exchange-management-shell","category-exchange-tools","category-microsoft-exchange","tag-exchange-mailbox-report-using-exchange-management-shell","tag-exchange-mailbox-report-using-powershell","tag-export-mailbox-sizes-for-all-mailbox-servers","tag-export-mailbox-sizes-in-exchange-2010-using-exchange-management-shell","tag-export-mailbox-sizes-per-server","tag-export-mailbox-sizes-to-csv"],"_links":{"self":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":1,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}