Link to home
Start Free TrialLog in
Avatar of trecool
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-publicfolderclientpermission -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?

Avatar of craig_j_Lawrence
craig_j_Lawrence
Flag of Australia image

Hi trecool,

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-publicfolderclientpermission -user Domain\userid Admins" -accessrights owner

This will remove all rights for the specified user
Avatar of trecool
trecool

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
Avatar of craig_j_Lawrence
craig_j_Lawrence
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial