[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-04-01
2
Medium Priority
?
406 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 2000 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

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

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

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
To show how to create a transport rule 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 >> Rules tab.:  To cr…
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…
Suggested Courses

834 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