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