Solved

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

Posted on 2009-04-01
2
392 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This video discusses moving either the default database or any database to a new volume.
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…

813 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

8 Experts available now in Live!

Get 1:1 Help Now