$Access = New-Object system.security.accesscontrol.filesystemaccessrule("BUILTIN\IIS_IUSRS","FullControl","Allow")
$wwwrootacl = Get-Acl -path "C:\inetpub\wwwroot\"
$wwwrootacl.SetAccessRule($Access)
Set-Acl "C:\inetpub\wwwroot\" $wwwrootacl
$Access = New-Object system.security.accesscontrol.filesystemaccessrule("BUILTIN\IIS_IUSRS","FullControl","Allow")
$wwwrootacl = Get-Acl -path "C:\inetpub\wwwroot\"
$wwwrootacl.SetAccessRule($Access)
Set-Acl "C:\inetpub\wwwroot\" $wwwrootacl
本文标题:Powershell Change ACL
本文链接:https://www.haomeiwen.com/subject/jdjogttx.html
网友评论