Solved

How do I remove Inherited Permissions on an Address List using PS1

Posted on 2009-04-01
2
393 Views
Last Modified: 2012-05-06
I need to remove Inherited Permissions from and Address List.  Specifically the Address list allows Authenticated Users to List Contents.  I dont want them to.  I know i can do it through the GUI just fine.. I just want to program the task.

I know i have to start with
Remove.ADPermission $MyContainer -user "Authenticated User"
but the syntax to first remove inherit parent properties and to remove the "LIst Contents" permissions are evading me. I also dont want it to prompt me to confirm.. just do it

Can anyone help with this line of code?  or a better way or deny system?  Just needs to be automatic and not prompt me
0
Comment
Question by:brandonjel
2 Comments
 
LVL 17

Accepted Solution

by:
Suraj earned 500 total points
ID: 24051517
Run the following command:

get-adpermission "All Address Lists" | Where {($_.User -like 'NT Authority\Authenticated Users') -and ($_.IsInherited -eq $True)} | Remove-ADPermission

Thanks,
x-sam
0
 

Author Closing Comment

by:brandonjel
ID: 31565506
thanks man.. perfect
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

821 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