$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
$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
by
Tags:
Leave a Reply