I’ve created a new folder structure for a customer of mine, however due to the customer forcing to go to production instead of test there were some small issues concerning permissions on certain sub-folders.
The problem is that we’re talking about approximately 50.000 folders on which a subset needs to set the option “Replace all child object permission entries with inheritable permission entries from this object”.
So for example I have D:\Data\DepartmentA\ProjectA\Subfolder1
This file has custom permissions all set on it and newly created files within this folder and its sub-folder will get the correct permissions.
However some copied files [before the permissions were re-set using Set-ACL] still have different permissions, allowing only the person who copied these files access to them.
Is there any way using PowerShell I can simply ONLY set the option to “Replace all child object permission entries with inheritable permission entries from this object” WITHOUT having to re-define all the custom permissions on that folder?
I’ve been going through a bunch of articles found through Google, but all of them seem to create a New-Object in which I need to define my full permission set again, which would just be an enormous pain to do.
Here are some of the resources already used:
If I do it manually, simply ticking the box under Advanced Security settings is sufficient to resolve the issue, but of course I would like to automate the process due to the sheer number of folders affected.
Does anyone have any tips on how I can get this resolved?