Skip to content

Instantly share code, notes, and snippets.

@warroyo
Created January 8, 2019 07:07
Show Gist options
  • Save warroyo/c22f55a408bab91792190e8530403d8b to your computer and use it in GitHub Desktop.
Save warroyo/c22f55a408bab91792190e8530403d8b to your computer and use it in GitHub Desktop.
make folder full access
$sharepath = "workspace"
$Acl = Get-ACL $SharePath
$AccessRule= New-Object System.Security.AccessControl.FileSystemAccessRule("everyone","FullControl","ContainerInherit,Objectinherit","none","Allow")
$Acl.AddAccessRule($AccessRule)
Set-Acl $SharePath $Acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment