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