Solved

Exchange 2007 Command Shell: Public Folder Permissions

Posted on 2010-08-19
4
923 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an email address policy 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 Mail Flow…
how to add IIS SMTP to handle application/Scanner relays into office 365.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now