This commit is contained in:
Karl-Wilfried Zimmer 2024-07-15 21:05:54 +02:00
parent 32158885bc
commit 2248f91d25

View File

@ -70,9 +70,7 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
$rid = $ReadTarget.SID
$wid = $WriteTarget.SID
$fsrr = "ReadAndExecute"
$fsrw = "Modify"
$fsrad = "CreateDirectories"
$fsraf = "CreateFiles "
$fsrw = "Write"
$type = "Allow"
@ -81,10 +79,10 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
$FolderACL= Get-Acl -Path $folder
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
Set-Acl -Path $folder.FullName -AclObject $FolderACL
Set-Acl -Path $folder -AclObject $FolderACL
$FolderACL= Get-Acl -Path $folder
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
Set-Acl -Path $folder.FullName -AclObject $FolderACL
Set-Acl -Path $folder -AclObject $FolderACL
return $ret
}