From b1d0662ec06c430189fa1701f40208ed144c5100 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Mon, 15 Jul 2024 20:51:39 +0200 Subject: [PATCH] removed inheritance and drop all inherited --- NewProject2.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/NewProject2.ps1 b/NewProject2.ps1 index ade5a85..f7f74ba 100644 --- a/NewProject2.ps1 +++ b/NewProject2.ps1 @@ -64,6 +64,7 @@ if($PSBoundParameters.ContainsKey("ProjectName")){ Write-Host $WriteTarget.Name $FolderACL= Get-Acl -Path $folder + $FolderACL.SetAccessRuleProtection($true,$false) $rid = $ReadTarget.SID $wid = $WriteTarget.SID