From f926dfb60d65872715831542c8a125a0d7414c2f Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 21:06:34 +0200 Subject: [PATCH] snap --- NewProject2.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewProject2.ps1 b/NewProject2.ps1 index e9bd180..f46f818 100644 --- a/NewProject2.ps1 +++ b/NewProject2.ps1 @@ -70,8 +70,8 @@ if($PSBoundParameters.ContainsKey("ProjectName")){ $fsrr = "Read" $fsrr = "Write" $type = "Allow" - $fsarar = $rid,$fsrr,$type - $fsaraw = $wid,$fsrw,$type + $fsarar = @($rid,$fsrr,$type) + $fsaraw = @($wid,$fsrw,$type) $fileSystemAccessRuleR = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fsarar $fileSystemAccessRuleW = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fsaraw