Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

[BUG] in Start-Job cmdlet when piping job's name to the cmdlet: the resulting job can't be found by Receive-Job cmdlet.

$
0
0

Consider this script:

$job=[pscustomobject]@{Name='Qwerty'} | sajb -ScriptBlock {ps}

The job is created, successfully, with the name specified above.

It can be seen commanding:

gjb

Nonetheless, trying to receive the result from it (the job) results in job not found error.

rcjb -job $job


... don't disturb ... life is short, and I have to think what I'll do next ...


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>