• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 797
  • 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!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell┬« is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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