Permission on Public Folder - Reviewer template

Hello guys,

I need change to "Reviewer" the current permission of users on public folders.

example:
ReplaceUserPermissionOnPFRecursive.ps1-Server "SERVER01"-TopPublicFolder "\Marketing"-User "Kim"-Permissions Reviewer

I need to establish this standard for all users who already have full or read-write permission.

I'm having trouble mounting a script that modifies the permission of current users.

Anyone have an idea ?

Thanks a lot!

July 21st, 2013 9:05pm

How exactly are you "mounting" this script?
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2013 10:20pm

Hello,

Please make sure your exchange version.

Please post the event information when you run the script.

Related artciles for your reference.

Scripts for Managing Public Folders in the Exchange Management Shell

http://technet.microsoft.com/en-us/library/aa997966.aspx

Managing Public Folder Client Access Permissions Exchange 2007 MSH / EMC (Note: This is not from microsoft, but it refers to technet article.)

http://exchangeshell.wordpress.com/2009/09/06/managing-public-folder-client-access-permissions-exchange-2007-msh-emc-exchange-management-shell/

July 22nd, 2013 2:32am

I created the following script:

$ AllPublicFolders = Get-publicFolder '\ PF Test'-recurse
foreach ($ mp in $ AllPublicFolders) {
Get $ PublicFolderClientPermission-Pf | foreach {Add-PublicFolderClientPermission $ _.Identity-User $ Reviewer _.User-AccessRights-Confirm: $ False}
}

The problem is that PowerShell returns an error message saying that the user already has permission to read and can not assign the same right again.

User NT User:Domain\user, already has some of the permissions (ReadItems, FolderVisible) specified to be added
on the public folder \Teste PF\Teste Replicate 2\Teste Subfolder 2.  You can't add a right that the user already has.
The current permission for NT User:Domain\user is "ReadItems, CreateItems, EditOwnedItems, DeleteOwnedItems, Ed
itAllItems, DeleteAllItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible".
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...blicFolderEntry:PublicFolderEntry) [Add-PublicFolder
   ClientPermission], InvalidOperationException
    + FullyQualifiedErrorId : 77A1D273,Microsoft.Exchange.Management.MapiTasks.AddPublicFolderClientPermission

The goal is to replace all the current permissions for the template Reviewer.

Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2013 10:51am

Hello,

Exchange Version is 2010 SP2 Rollup 4 - 14.02.0318.00

I used the TechNet library to create the script:

http://technet.microsoft.com/en-us/library/aa998834(v=exchg.141).aspx

July 22nd, 2013 11:14am

It appears that the script won't work in your situation without you modifying it.
Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2013 11:32am

Sure.

Does anyone have an idea how to replace the permissions using the script mentioned?
July 22nd, 2013 1:13pm

I changed the script.

Problem solved.

Thanks

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2013 11:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics