From 168718716ccd7cf86127e308d6757b3a8d1cea01 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 20:44:50 +0200 Subject: [PATCH] snap --- NewProject2.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewProject2.ps1 b/NewProject2.ps1 index c8ef2d5..e9bd180 100644 --- a/NewProject2.ps1 +++ b/NewProject2.ps1 @@ -73,8 +73,8 @@ if($PSBoundParameters.ContainsKey("ProjectName")){ $fsarar = $rid,$fsrr,$type $fsaraw = $wid,$fsrw,$type - $fileSystemAccessRuleR = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fileSystemAccessRuleArgumentList - $fileSystemAccessRuleW = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fileSystemAccessRuleArgumentList + $fileSystemAccessRuleR = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fsarar + $fileSystemAccessRuleW = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fsaraw $FolderACL.SetAccessRule($fileSystemAccessRuleR) $FolderACL.SetAccessRule($fileSystemAccessRuleW)