# Icacls Grant all users access to a folder including new files

batchbatch fileicaclsshared-folders

I use the following command (in an admin batch file) to grant all users (specifically users on the network) full access to a folder and all its contents:

Icacls %fold% /grant Everyone:F /inheritance:e /T


However, it is not applying these settings to files newly created. What am I missing in the Icacls command?

icacls foo /grant Everyone:(OI)(CI)F
When you add ACEs marked inheritable, icacls will propagate them automatically and the /T option is unnecessary (maybe even slightly harmful).