Skip to content

Instantly share code, notes, and snippets.

@uniquelau
Last active December 13, 2015 18:19
Show Gist options
  • Save uniquelau/4954745 to your computer and use it in GitHub Desktop.
Save uniquelau/4954745 to your computer and use it in GitHub Desktop.
REM For IIS7 plus, using Application Pool Identities
set identity=IIS APPPOOL\{app-pool-name}
icacls app_code /grant "%identity%":(OI)(CI)RX
icacls app_browsers /grant "%identity%":(OI)(CI)RX
icacls app_data /grant "%identity%":(OI)(CI)M
icacls bin /grant "%identity%":(OI)(CI)R
icacls config /grant "%identity%":(OI)(CI)M
icacls css /grant "%identity%":(OI)(CI)M
icacls masterpages /grant "%identity%":(OI)(CI)M
icacls media /grant "%identity%":(OI)(CI)M
icacls scripts /grant "%identity%":(OI)(CI)M
icacls umbraco /grant "%identity%":(OI)(CI)M
icacls usercontrols /grant "%identity%":(OI)(CI)R
icacls xslt /grant "%identity%":(OI)(CI)M
icacls views /grant "%identity%":(OI)(CI)M
icacls web.config /grant "%identity%":(OI)(CI)M
icacls web.config /grant "%identity%":M
REM If you have installed the Robots.txt editor package you need the following line too
icacls robots.txt /grant "%identity%":M
@uniquelau
Copy link
Author

Removed /data folder, not used since Umb 4.something? maybe 4.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment