I don't have time to try and figure this out and want to learn powershell, but haven't had the chance yet.
I need to change the permissions on an entire folder structure, but it has a special need.
Folder starts at D:\HRDept
I need to reset all permissions, inherit for HRDept-Users Modify and HRDept-Payroll-Usersl list folders. This is to remove old user permissions that should no longer be there.
But there are folders inside of D:\HRDept that are called "Payroll", where HR-Dept-Payroll needs Modify access. So, when it comes across those folders, it needs to turn off inherit, copy the rules, and add a single new rule.
Added bonus is to be able to run it on a individual folder for the GUI when they create a new user account.
Thanks in advance!