{"id":1938,"date":"2017-02-17T14:22:54","date_gmt":"2017-02-17T13:22:54","guid":{"rendered":"https:\/\/technet.cloud4you.biz\/?p=1938"},"modified":"2017-02-17T14:25:05","modified_gmt":"2017-02-17T13:25:05","slug":"oneliner-groesse-eines-oeffentlichen-ordners-und-dessen-unterordner-bestimmen","status":"publish","type":"post","link":"https:\/\/technet.cloud4you.biz\/en\/oneliner-groesse-eines-oeffentlichen-ordners-und-dessen-unterordner-bestimmen\/","title":{"rendered":"OneLiner: Determine the size of a public folder (and it&#8217;s subfolder)"},"content":{"rendered":"<p>We recently had the request to determine the size of a public folder. Not a problem at all, this should do the trick:<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #ffff00;\">[PS]<\/span> C:\\Windows\\system32&gt;<\/strong>Get-PublicFolder \"\\<span style=\"color: #ff0000;\">[Foldername]<\/span>\" | Get-PublicFolderStatistics | Select TotalItemSize<\/pre>\n<\/blockquote>\n<p>&#8230; not really. All we get is the summarized size of the items included in this specific folder. Subfolders and items in subfolders will be ignored. But there is another way which will include subfolder sizes. Here you go:<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #ffff00;\">[PS]<\/span> C:\\Windows\\system32&gt;<\/strong>Get-PublicFolder \"\\<span style=\"color: #ff0000;\">[Foldername]<\/span>\" -Recurse | Get-PublicFolderStatistics | Measure TotalItemSize -sum<\/pre>\n<\/blockquote>\n<p>Optically improved version:<\/p>\n<blockquote>\n<pre><strong><span style=\"color: #ffff00;\">[PS]<\/span> C:\\Windows\\system32&gt;<\/strong>Get-PublicFolder \"\\<span style=\"color: #ff0000;\">[Foldername]<\/span>\" -Recurse | Get-PublicFolderStatistics | Measure TotalItemSize -sum | Select @{N='Anzahl der Items'; E={$_.Count}}, @{N='Speicher in Byte'; E={$_.Sum}} | fl<\/pre>\n<\/blockquote>\n<p>Please be aware that this oneliner may takes some time\u00a0to complete your request.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently had the request to determine the size of a public folder. Not a problem at all, this should do the trick: [PS] C:\\Windows\\system32&gt;Get-PublicFolder &#8220;\\[Foldername]&#8221; | Get-PublicFolderStatistics | Select TotalItemSize &#8230; not really. All we get is the summarized size of the items included in this specific folder. Subfolders and items in subfolders will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,147],"tags":[203,148],"class_list":["post-1938","post","type-post","status-publish","format-standard","hentry","category-exchange","category-scripts","tag-exchange","tag-script"],"translation":{"provider":"WPGlobus","version":"3.0.6","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/comments?post=1938"}],"version-history":[{"count":4,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1938\/revisions"}],"predecessor-version":[{"id":1982,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1938\/revisions\/1982"}],"wp:attachment":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/media?parent=1938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/categories?post=1938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/tags?post=1938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}