put in inheritance

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-15 22:25:14 +02:00
parent 96721a0435
commit 8c134c550f

View File

@ -74,8 +74,8 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
$type = "Allow" $type = "Allow"
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,$type) $fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,"ContainerInherit,ObjectInherit","None",$type)
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,$type) $fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,"ContainerInherit,ObjectInherit","None",$type)
$FolderACL= Get-Acl -Path $folder $FolderACL= Get-Acl -Path $folder
$FolderACL.SetAccessRule($fileSystemAccessRuleR) $FolderACL.SetAccessRule($fileSystemAccessRuleR)