Hello once again,
Hopefully I have come to the right place as you guys have helped me out in the past, so calling on the Powershell guru's today! Still fairly new to Powershell so I will do my best. I am trying to set Editor permissions on all sub folders within a public folder on Exchange 2007, the root structure goes as follows:
AllPublicFolders\Process Cooling\PC Projects\*sub folders*
I want to set a user permissions on all the sub folders under PC Projects, I know how to set permissions on PC Projects but as is the way with Exchange all existing sub folders do not inherit these permissions automatically, so they must be set manually, which unfortunately for me there is roughly around 100 of them and I do not have the time of day to do this.
The first command in powershell goes as follows:
Add-PublicFolderClientPermission -Identity "\Process Cooling\PC Projects" -AccessRights Owner -User joe.bloggs
This works fine, I get the text to say this has been set correctly. The next step is to then set all permissions to sub folders within this folder, as follows:
AddUsersToPFRecursive.ps1 -TopPublicFolder "\Process Cooling\PC Projects" -User "joe.bloggs" -Permission Editor
When I enter this in I get the following code back:
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Cooling\PC'.
Can anyone spot where I am going wrong? I have tried all sorts of combinations but I get the same thing where it is unable to find the folder I have listed? Even Powershell help states that there should be a folder name in this parameter. Is there is a different command entirely which would smooth this over?
Thanks in advance
SolarP
Hopefully I have come to the right place as you guys have helped me out in the past, so calling on the Powershell guru's today! Still fairly new to Powershell so I will do my best. I am trying to set Editor permissions on all sub folders within a public folder on Exchange 2007, the root structure goes as follows:
AllPublicFolders\Process Cooling\PC Projects\*sub folders*
I want to set a user permissions on all the sub folders under PC Projects, I know how to set permissions on PC Projects but as is the way with Exchange all existing sub folders do not inherit these permissions automatically, so they must be set manually, which unfortunately for me there is roughly around 100 of them and I do not have the time of day to do this.
The first command in powershell goes as follows:
Add-PublicFolderClientPermission -Identity "\Process Cooling\PC Projects" -AccessRights Owner -User joe.bloggs
This works fine, I get the text to say this has been set correctly. The next step is to then set all permissions to sub folders within this folder, as follows:
AddUsersToPFRecursive.ps1 -TopPublicFolder "\Process Cooling\PC Projects" -User "joe.bloggs" -Permission Editor
When I enter this in I get the following code back:
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Cooling\PC'.
Can anyone spot where I am going wrong? I have tried all sorts of combinations but I get the same thing where it is unable to find the folder I have listed? Even Powershell help states that there should be a folder name in this parameter. Is there is a different command entirely which would smooth this over?
Thanks in advance

SolarP