icacls, grant authenticated users write permissions

This is how to create a temp directory and grand all authenticated users write permissions:
if exist "c:\temp" rd "c:\temp" /Q /S
if not exist "c:\temp" md "c:\temp"
c:\windows\system32\icacls c:\temp /grant "Authenticated Users":(OI)(CI)M

No comments: