Wednesday, 7 January 2009

Set Umbraco folder permissions on the command line

When installing Umbraco it is a pain to set all the folder permissions through Explorer. This script does the same job.

icacls app_code /grant "NETWORK SERVICE":(OI)(CI)F
icacls bin /grant "NETWORK SERVICE":(OI)(CI)F
icacls config /grant "NETWORK SERVICE":(OI)(CI)F
icacls css /grant "NETWORK SERVICE":(OI)(CI)F
icacls data /grant "NETWORK SERVICE":(OI)(CI)F
icacls masterpages /grant "NETWORK SERVICE":(OI)(CI)F
icacls media /grant "NETWORK SERVICE":(OI)(CI)F
icacls python /grant "NETWORK SERVICE":(OI)(CI)F
icacls scripts /grant "NETWORK SERVICE":(OI)(CI)F
icacls umbraco /grant "NETWORK SERVICE":(OI)(CI)F
icacls usercontrols /grant "NETWORK SERVICE":(OI)(CI)F
icacls xslt /grant "NETWORK SERVICE":(OI)(CI)F