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