We're trying to set up a script to modify permissions on a whole ton of folders, 850 to be exact. It's an HR_Data folder at the top level underneath which there is an Active Employees subfolder. Under that is the 850 folders, one for each employee. Inside those is 3 subfolders: HR, Training, and Safety. We have two groups that need permissions to these. Setting up the permissions on the 850 folders is easy since each has the same permission, I'm highlighting all of them, right-clicking and changing the permissions to add read and execute for these two groups. But the complication comes in with the 3 subfolders:
Group1 - modify on HR subfolder
Group2 - deny everything on HR subfolder
Group1 - deny everything on Training and Safety subfolders.
Group2 - modify on Training and Safety subfolders.
Rather than go into every one of the 850 folders and modify the permissions on the subfolders manually, is there some script that can do this? I've been looking at cacls.exe but can't get it to work on a test folder I have.