Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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