{"id":147,"date":"2018-09-19T10:36:29","date_gmt":"2018-09-19T14:36:29","guid":{"rendered":"http:\/\/www.thelamberts.com\/wiki\/?p=147"},"modified":"2018-09-19T10:36:46","modified_gmt":"2018-09-19T14:36:46","slug":"show-total-number-of-folders-exchange-2010","status":"publish","type":"post","link":"http:\/\/www.thelamberts.com\/wiki\/2018\/09\/19\/show-total-number-of-folders-exchange-2010\/","title":{"rendered":"Show total number of folders  &#8211; Exchange 2010"},"content":{"rendered":"<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$Mailboxes = Get-Mailbox -id  Deborah_Polen-Pitman\r\n$Results = foreach( $Mailbox in $Mailboxes ){\r\n    $Folders = $MailBox |\r\n        Get-MailboxFolderStatistics |\r\n        Measure-Object |\r\n        Select-Object -ExpandProperty Count\r\n\r\n    New-Object -TypeName PSCustomObject -Property @{\r\n        Username    = $Mailbox.Alias\r\n        FolderCount = $Folders\r\n        }\r\n    }\r\n\r\n$Results |\r\n    Select-Object -Property Username, FolderCount<\/pre>","protected":false},"excerpt":{"rendered":"$Mailboxes = Get-Mailbox -id Deborah_Polen-Pitman $Results = foreach( $Mailbox in $Mailboxes ){ $Folders = $MailBox | Get-MailboxFolderStatistics | Measure-Object | Select-Object -ExpandProperty Count New-Object -TypeName PSCustomObject -Property @{ Username = $Mailbox.Alias FolderCount = $Folders } } $Results | Select-Object -Property Username, FolderCount","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[26],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-exchange","category-powershell","tag-exchange-mailbox-folders-powershell"],"_links":{"self":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}