trecool
asked on
Exchange 2007 Command Shell: Public Folder Permissions
I asked a similar question earlier where I wanted to add permissions for a user / group to a particular public folder and all it's subfolders:-
get-publicfolder "\Information Systems" -recurse | add-publicfolderclientperm ission -user "Domain Admins" -accessrights publishingeditor
My question is, now that I have the domain admins with permissions as publishing editor to this folder and subfolders, how do I remove a specific user from the permissions, regardless of whether they're owner, editor, publishing editor, etc?
get-publicfolder "\Information Systems" -recurse | add-publicfolderclientperm
My question is, now that I have the domain admins with permissions as publishing editor to this folder and subfolders, how do I remove a specific user from the permissions, regardless of whether they're owner, editor, publishing editor, etc?
ASKER
The problem is, this user has different permissions on different subfolders, isn't there a switch like "-accessrights all" that would remove everything?
trecool -accessrights owner is the equivalent of all it removes all possible permissions for the user from the targetted folder
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As long as you know the explicit permission you wish to remove, the following command should get the job done
get-publicfolder "\Information Systems" -recurse | remove-publicfolderclientp
This will remove all rights for the specified user