美文网首页
Powershell Change ACL

Powershell Change ACL

作者: richardch | 来源:发表于2017-03-10 18:33 被阅读0次
    $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