Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video we show how to create a User 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 >> Mailb…
In this video we show how to create a Contact 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 >> Contact ta…

760 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

24 Experts available now in Live!

Get 1:1 Help Now