{"id":2128,"date":"2017-05-16T21:15:36","date_gmt":"2017-05-16T21:15:36","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2128"},"modified":"2017-05-16T21:15:36","modified_gmt":"2017-05-16T21:15:36","slug":"how-to-apply-permissions-to-public-folder-and-all-sub-folders-in-exchange-20072010-using-exchange-management-shell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2128","title":{"rendered":"How to Apply Permissions to Public Folder and All Sub Folders in Exchange 2007\/2010 Using Exchange Management Shell"},"content":{"rendered":"<p>If you have a public folder that your working on, and you need to apply permissions to it using the Exchange Management Shell, its pretty easy.\u00a0 The command is:<\/p>\n<table border=\"0\" width=\"400\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"400\"><strong><span style=\"font-size: small;\">Add-PublicFolderClientPermission \u2013Identity \u201c<em>Foldername\u201d<\/em> \u2013user <em>UserName<\/em><\/span> \u2013AccessRights PublishingEditor<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For instance, to add the user <strong>pponzeka<\/strong> to the folder <strong>IT<\/strong> with the <strong>Publishing Editor<\/strong> permission, the command would be the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"13-Nov01 11.12\" src=\"http:\/\/port25.files.wordpress.com\/2009\/11\/13nov0111-12_thumb.jpg\" alt=\"13-Nov01 11.12\" width=\"450\" height=\"34\" border=\"0\" \/><\/p>\n<p>This works great, but what if we have several subfolders under <strong>IT<\/strong>, and we want to apply the same user permissions to all of the subfolders as well?\u00a0 A utility called <strong>PFDAVADMIN<\/strong> that was available from Microsoft used to allow you to do this, and it still works with Exchange 2007.\u00a0 But, since the protocol it uses, WebDAV is no longer available in Exchange 2010, we no longer have this option.\u00a0 Plus, the shell is easier to use anyway!<\/p>\n<p>So, we have the <strong>IT <\/strong>public folder, and three subfolders:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"13-Nov02 11.16\" src=\"http:\/\/port25.files.wordpress.com\/2009\/11\/13nov0211-16_thumb.jpg\" alt=\"13-Nov02 11.16\" width=\"450\" height=\"134\" border=\"0\" \/><\/p>\n<p>So, first, in the Exchange Management Shell, if we attempt to list the public folder <strong>IT<\/strong>, this is the result of what we\u2019ll see.\u00a0 The command used is <strong>Get-PublicFolder \u2013Identity \u201cIT\u201d<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"13-Nov03 11.21\" src=\"http:\/\/port25.files.wordpress.com\/2009\/11\/13nov0311-21_thumb.jpg\" alt=\"13-Nov03 11.21\" width=\"450\" height=\"86\" border=\"0\" \/><\/p>\n<p>That\u2019s odd, we know there are three folders underneath, why doesn\u2019t it list these?\u00a0 We need to add the \u2013<strong>Recurse<\/strong> option to our command, so that it looks in the root, and everything underneath.\u00a0 So the command should be <strong>Get-PublicFolder \u2013Identity \u201cIT\u201d \u2013Recurse<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"13-Nov04 11.23\" src=\"http:\/\/port25.files.wordpress.com\/2009\/11\/13nov0411-23_thumb.jpg\" alt=\"13-Nov04 11.23\" width=\"450\" height=\"127\" border=\"0\" \/><\/p>\n<p>Notice the Parent Path?\u00a0 IT has listed, which means its a Top Level Folder in Public Folders.\u00a0 The other three have <strong>IT<\/strong> listed, which means they are sub folders of <strong>IT.<\/strong><\/p>\n<p>So, back to the top.\u00a0 The permission to add permission on a public folder was:<\/p>\n<p><strong>Add-PublicFolderClientPermission \u2013Identity \u201c<em>Foldername\u201d<\/em> \u2013user <em>UserName<\/em> \u2013AccessRights PublishingEditor<\/strong><\/p>\n<p>So in our case it was:<\/p>\n<p><strong>Add-PublicFolderClientPermission \u2013Identity \u201cIT\u201d \u2013User pponzeka \u2013AccessRights PublishingEditor<\/strong><\/p>\n<p>So, now, how do we apply these permissions to the root folder, in this case <strong>IT<\/strong>, and all three subfolders, in this case <strong>Documents, Emails <\/strong>and <strong>Plans<\/strong>?\u00a0 Well, we use the piping command to pipe the entire list of folders to the <strong>Add-PublicFolderClientPermission<\/strong> command.<\/p>\n<p><strong>Get-PublicFolder \u2013Identity \u201cIT\u201d \u2013Recurse | Add-PublicFolderClientPermission \u2013User pponzeka \u2013AccessRights PublishingEditor<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" title=\"13-Nov05 11.30\" src=\"http:\/\/port25.files.wordpress.com\/2009\/11\/13nov0511-30_thumb.jpg\" alt=\"13-Nov05 11.30\" width=\"450\" height=\"93\" border=\"0\" \/><\/strong><\/p>\n<p>Note that we don\u2019t need to specify the Identity\u00a0 in the <strong>Add-PublicFolderClientPermission<\/strong> because we piped that to it with the <strong>| <\/strong>command.<\/p>\n<p>And there you go.\u00a0 The user account has been given these rights to the root folder, <strong>IT<\/strong>, and all its subfolders.\u00a0 This works for any number of subfolders, and you can also use the same method to remove access rights.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a public folder that your working on, and you need to apply permissions to it using the Exchange Management Shell, its pretty easy.\u00a0 The command is: Add-PublicFolderClientPermission \u2013Identity \u201cFoldername\u201d \u2013user UserName \u2013AccessRights PublishingEditor For instance, to add the user pponzeka to the folder IT with the Publishing Editor permission, the command would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,22],"tags":[],"class_list":["post-2128","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-2010"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2128"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2128\/revisions"}],"predecessor-version":[{"id":2129,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2128\/revisions\/2129"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}