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