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)