Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Scenario: I unpack a file into a temp directory.

Then I movve the file into a different directory. I want the file ACL to only include the perms stipulated in the new containing directory. How can I make that happen?

In UI, and in command line would be good. icacls?

share|improve this question
up vote 4 down vote accepted

You could use the reset function of icacls:

ICACLS "C:\path\to\folder" /reset /T /C

then enable inheritance:

ICACLS "C:\path\to\folder" /inheritance:e /T /C
share|improve this answer
On Windows XP, I'm getting Invalid parameter "/inheritance:e", any idea? (I've installed icacls a couple of weeks ago, so I don't think upgrading would help). – maaartinus May 14 '11 at 15:53
/inheritance is not listed as a parameter on the icacls documentation page. – Michael Sep 29 '15 at 15:34

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.