• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 793
  • Last Modified:

Manage public folder permission on Exchange 2007


I have a following task: I have a public folder on my Exchange 2007 server with some permissions on this folder. I need export this permissions, I can do this by using cmdlet get-PublicFolderClientPermission. After this I need to import this permissions on another public folder.

So I tried to use pipeline like: Get-PublicFolderClientPermission -Identity "\Public Folder" | Add-PublicFolderClientPermission -Identity "\NewPublicFolder" but I got an error that using pipeline I deliver wrong parametrs to my cmdlet.

So I wonder to fix this or to find new solution for my task.
1 Solution
what errors are you getting?

Looks like Add-PublicFolderClientPermission doesn't like pipeline commands, so this is quick and dirty but does the trick.

NB it will error if the permissions already exist!

$x=Get-PublicFolderClientPermission \TEST1; $x|Foreach{Add-PublicFolderClientPermission -Identity \TEST2 -User $_.User -AccessRights $_.AccessRights}

Open in new window

Master-SquirrelAuthor Commented:
Excellent. It works. Thanks a lot!

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now