Day: February 13, 2015

  • SetUsersFullControl.ps1

    $sharepath = “C:\SWL” $Acl = Get-ACL $SharePath $AccessRule= New-Object System.Security.AccessControl.FileSystemAccessRule(“Users”,”full”,”ContainerInherit,Objectinherit”,”none”,”Allow”) $Acl.AddAccessRule($AccessRule) Set-Acl $SharePath $Acl