Created
November 15, 2016 12:00
-
-
Save yetanotherchris/200a70840a21d3c8fa9ef30f448e48b0 to your computer and use it in GitHub Desktop.
Set write permissions on a directory in Powershell for IIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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