{"id":6204,"date":"2022-09-30T10:15:57","date_gmt":"2022-09-30T10:15:57","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6204"},"modified":"2022-09-30T10:15:57","modified_gmt":"2022-09-30T10:15:57","slug":"public-folder-powershelling-exchange-online","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/public-folder-powershelling-exchange-online","title":{"rendered":"Public Folder Powershelling Exchange Online"},"content":{"rendered":"<p>#Find is the PF is mail enabled<\/p><p>Get-PublicFolder -Identity &#8220;\\Public Folder\\Folder&#8221; -recurse -ResultSize Unlimited | ? { $_.MailEnabled }\u00a0<\/p><p>#Remove mail enabled<\/p><p>Set-PublicFolder &#8220;\\Public Folder\\Folder&#8221; -MailEnabled:$false -confirm:$False<\/p><p>#Delete the Public Folder now<\/p><p>Remove-PublicFolder -Identity &#8220;\\Public Folder\\Folder&#8221; -Recurse<\/p><p>Re-enable the PF for Mail<\/p><p>Enable-MailPublicFolder &#8220;\\Public Folder\\Folder&#8221;<\/p><p>&nbsp;<\/p><h5>\u00a0Unexpected error mail-enabling public folder &#8216;\\Public Folder\\Folder&#8217;: Shell: exception while executing PowerShell. Cause: Shell: exception while executing PowerShell. &#8212;&gt; Shell: exception while executing PowerShell. &#8212;&gt; Could not load file or assembly &#8216;System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#8217; or one of its dependencies. The system cannot find the file specified. &#8212;&gt; Could not load file or assembly &#8216;System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#8217; or one of its dependencies. The system cannot find the file specified.<\/h5>","protected":false},"excerpt":{"rendered":"<p>#Find is the PF is mail enabledGet-PublicFolder -Identity &#8220;\\Public Folder\\Folder&#8221; -recurse -ResultSize Unlimited | ? { $_.MailEnabled }\u00a0#Remove mail enabledSet-PublicFolder &#8220;\\Public Folder\\Folder&#8221; -MailEnabled:$false -confirm:$False#Delete the Public Folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3873,4014,1031,4013,4012],"class_list":["post-6204","post","type-post","status-publish","format-standard","hentry","category-research","tag-bit-titan","tag-cannot-delete-because-mail-enabled","tag-delete","tag-mail-enable","tag-public-folder"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6204"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6204\/revisions"}],"predecessor-version":[{"id":6217,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6204\/revisions\/6217"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}