Hello everyone!
We would like to remove the writing permissions for all security groups that contain normal ad users in our archive folder structure.
I would like to explain the situation a bit more detailed first:
There is an archive folder. It consists of many different subfolders. Per subfolder there are two security groups for example called:
1.) EU TEST Z_TESTFOLDER_R (members which are allowed to read)
2.) EU TEST Z_TESTFOLDER_RW (members which are allowed to write)
Sometimes those rights don't get inherited by a subfolder because some users in the before mentioned RW group are not allowed to write on that specifc subfolder. If that is the case there are two new security groups:
1.) EU TEST Z_TESTFOLDER_SUBFOLDER_R
2.) EU TEST Z_TESTFOLDER_SUBFOLDER_RW
So my goal is it basically to remove the write permissions of every single RW security group in the whole archive folder structure...
I am looking for a PowerShell script that scans my whole archive (which means every subfolder as well as every file) and then removes the write permissions for every security group which ends in "RW".
I would be very helpful if someone could assist me in that matter and give me some basic approach for the script.
Please let me know if my information was not precise enough in order that i can provide it to you more detailed.
Thank you very much.
Best regards,
Dario