Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exchange 2007 Command Shell: Public Folder Permissions

Posted on 2010-08-19
4
Medium Priority
?
963 Views
Last Modified: 2012-05-10
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?

0
Comment
Question by:trecool
  • 3
4 Comments
 
LVL 6

Expert Comment

by:craig_j_Lawrence
ID: 33481012
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
0
 

Author Comment

by:trecool
ID: 33481318
The problem is, this user has different permissions on different subfolders, isn't there a switch like "-accessrights all" that would remove everything?
0
 
LVL 6

Expert Comment

by:craig_j_Lawrence
ID: 33481391
trecool -accessrights owner is the equivalent of all it removes all possible permissions for the user from the targetted folder
0
 
LVL 6

Accepted Solution

by:
craig_j_Lawrence earned 2000 total points
ID: 33481422
I just ran this in my lab - works fine without the -accessrights parameter

Also, you could run the following command to remove all invalid users from public folder client permissions
Get-PublicFolder <TopOfFolderPathToStart>  -recurse  | Get-PublicFolderClientPermission | Where-Object {$_.User -like "NT User:*"} | Remove-PublicFolderClientPermission -Confirm:$false
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
To show how to generate a certificate request 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 Servers >> Certificates…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses

885 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