Created
January 8, 2019 07:07
-
-
Save warroyo/c22f55a408bab91792190e8530403d8b to your computer and use it in GitHub Desktop.
make folder full access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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