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

How to give full access to a folder for everyone?

Is there any way to do it programmatically, using a .bat file or a script?

share|improve this question
What OS? I assume Windows given the .bat, but what version? – ChimneyImp May 24 '12 at 18:24
on windows-7 and windows-server-2008 – Gold May 24 '12 at 19:21
Where is the folder; on the server or on Windows 7? – CharlieRB May 24 '12 at 19:53

Use a tool called iCacls from microsoft.

This page illustrates the exact thing that you need.

Since it supports command line operation, you can easily write a batch with it.

PS: The guy is initially saying that it isn't working on win 7. BUT, go down the comments and he got it to work.

share|improve this answer

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.