Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created November 15, 2016 12:00
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetanotherchris/200a70840a21d3c8fa9ef30f448e48b0 to your computer and use it in GitHub Desktop.
Save yetanotherchris/200a70840a21d3c8fa9ef30f448e48b0 to your computer and use it in GitHub Desktop.
Set write permissions on a directory in Powershell for IIS
$acl = Get-Acl "C:\Windows\Temp"
$rule = New-Object System.Security.Accesscontrol.FileSystemAccessRule("IIS_IUSRS","Write","Allow")
$acl.SetAccessRule($rule)
Set-Acl "C:\Windows\Temp" $acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment