removed inheritance and drop all inherited

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-15 20:51:39 +02:00
parent 5a964bafe6
commit b1d0662ec0

View File

@ -64,6 +64,7 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
Write-Host $WriteTarget.Name Write-Host $WriteTarget.Name
$FolderACL= Get-Acl -Path $folder $FolderACL= Get-Acl -Path $folder
$FolderACL.SetAccessRuleProtection($true,$false)
$rid = $ReadTarget.SID $rid = $ReadTarget.SID
$wid = $WriteTarget.SID $wid = $WriteTarget.SID