Manage public folder permission on Exchange 2007

Posted on 2009-04-15
Last Modified: 2012-05-06

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.
Question by:Master-Squirrel
    LVL 7

    Accepted 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


    Author Comment

    Excellent. It works. Thanks a lot!

    Featured Post

    Hire Top Freelancers to Complete Exchange Projects

    Source the talented Expert Exchange community
    for top quality work on your Exchange projects.

    Hire the best. Collaborate easily. Get quality work.

    Join & Write a Comment

    Suggested Solutions

    Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
    Set OWA language and time zone in Exchange for individuals, all users or per database.
    In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now