Setting Public Folder Permissions with the AddUsersToPFRecursive.ps1 script
Hi, I am trying to adjust public folder permissions with the MS supplied script AddUsersToPFRecursive.ps1. It works fine for top level folders that have no spaces in the name, but errors out when you try to run it on a folder with a space in the name. Can anyone tell me what to modify in the script so that it will handle folder names with spaces? Any help would be much appreciated. Thanks!
October 28th, 2010 9:09am

Please refer to the cmdlet below: AddUsersToPFRecursive.ps1 -TopPublicFolder "\Sales Department" -User "David" -Permission ReviewerJames Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 4:25am

I was having the same problem until I found this website: http://vadimszenins.blogspot.com/2009/06/fixin-space-public-folder-name-issue-in.html. All you have to do is to edit the AddUsersToPFRecursive.ps1 by changing the line "get-publicfolder -identity $TopPublicFolder -Recurse -resultsize unlimited" To: 'get-publicfolder -identity "$TopPublicFolder"-Recurse -resultsize unlimited' And note the change from double quotes to single quotes for the get-publicfolder as well as the unlimited. I did this similar thing to the RemoveUserFromPFRecursive.ps1 Hope that helps.
July 2nd, 2012 6:08pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics