Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 icacls. I thought /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.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.