Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell script to disable inherit from parent object and remove Modify

$
0
0

I hope someone can help me with this complex script.

I am looking for a Powershell script that will change permissions on a subfolder. I have a folder that is inheriting Modify from the parent folder for a specific group. I need the script to remove the inherit and Modify so that the subfolder has Read & Execute for that specific group.

Here's the kicker, though, that is not necessary but would be a nice added bonus. I have an additional subfolder under that I need to stay Modify for that same group.

So, Folder 1 stays that same for the group. Folder 2 (subfolder of Folder 1) changed to Read & Excute for the group. Bonus: Folder 3 (subfolder of Folder 2) remain at Modify for the group.

Is this possible?

Thanks ahead of time.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>