Solved

Exchange 2007 Command Shell: Public Folder Permissions

Posted on 2010-08-19
4
935 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Address List 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 Organization >> Ad…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

623 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