So say you want to add permissions to a large group of public folders. Unlike Windows folders, public folders do not replicate permissions down through a tree. So the trick is to recursively go through the tree and apply permissions to the folders. This can be done with a very simple one liner.
Note:You want to run this on the Exchange server with the Mailbox role that houses the Public Folder database.
[PS] C:\Windows\system32>Get-PublicFolder "\IS Department\Software Installs" -recur | Add-PublicFolderClientPermission -user lmichel -accessrights Owner
So if you had a folder structure like
Public Folders -> IS Department -> Software Installs -> Lots of folders -> Marketing -> etc etc..
Then we just gave jsmith permissions to all of the “Lots of folders” under software installs. If you wanted you could go back a single tree or go further down the tree depending on your needs.