Solved

Exchange 2007 Command Shell: Public Folder Permissions

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Suggested Solutions

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

734 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