I'm trying to set Replace permission entries on all child objects using
icacls but I can't seem to do it. I want new folders/files to receive the permissions as well so I want to check the box Replace all child object permissions with inheritable permissions from this object using
/inheritance:e would do it that doesn't seem to to the trick.
I think I should be using
(OI)(CI) but I'm unsure how to use them.
The command I'm using is:
icacls D:\UserShares /grant:r "Domain\Users":f "Domain\Admins":f /c /t /l /q
I have a script that traverses though the
D: drive and resets the permissions on all subfolders using the above command but I also want to check the box Replace all child object permissions with inheritable permissions from this object on each. Any help much appreciated.