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

Manage public folder permission on Exchange 2007

Hi.

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.
0
Master-Squirrel
Asked:
Master-Squirrel
1 Solution
 
flaphead_comCommented:
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

0
 
Master-SquirrelAuthor Commented:
Excellent. It works. Thanks a lot!
0
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