fixed acl issue
This commit is contained in:
parent
85eeec864c
commit
1832cbae33
@ -72,9 +72,9 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
|||||||
$type = "Allow"
|
$type = "Allow"
|
||||||
|
|
||||||
|
|
||||||
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid.Name,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid.Name,$fsrw,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleWR = New-Object System.Security.AccessControl.FileSystemAccessRule($wid.Name,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleWR = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
|
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
|
||||||
|
Loading…
Reference in New Issue
Block a user