Max Kozlov
Max Kozlov
lines from 241: ``` If ($PSBoundParameters.ContainsKey('ArgumentList')) { If (@($ArgumentList).count -match '0|1') { $SingleArgument = $True } Else { $SingleArgument = $False } } ``` **-match** is a bug. it also...
I think will be better to ask @proxb why `$host.Ui.Write` functions used instead of `Write-`cmdlets
I reproduce it on v5, and on v2 on v2 error itself not returned ``` powershell C:\> # v5 C:\> import-module PoshRSJob C:\> start-rsjob { 'good' } -batch test Id...
the solution seems is to add `$Data = $null` at line 131 of PoshRSJob.psm1 it is not cleared from previous cycle run ``` diff @@ -128,6 +128,7 @@ Foreach($job in...
A you sure you launch 1.7.3.11 ? Can you show short example like mine above ?
Yes, the new code is shorter and simpler, it combine `Start-RSJob` and `$data | Start-RSJob` cases in one code branch. It also remove bug when first parameter added as array...
@codykonior I rewritten long text into other long text ... in addition I published test script. With it you can clearly see that you too can be affected by these...
btw this can be done thru `-ModulesToImport` parameter like `Import-Module -Name`. If supplied path exists, that it is path to module, if not - just module name and path can...
I this this way close to your needs ``` powershell $list = 'PoshWSUS', 'D:\Work\ps\test\', 'D:\Work\ps\test\PSAlphaFS\2.0.0.1\*.psm1' $modulenames = New-Object System.Collections.ArrayList $modulepaths = $list | ForEach-Object { $m = $_ try {...
There is an error for PSv2 when displaying running job at host you can workaround it with this simple method (your first script) ``` powershell $jobs = 'A','B','C','D','E','F','G' | Start-RSJob...