I've done very similar things arnoud, but i LOVE the design of this.. we
don't have to come back and check status of jobs being run async etc. it
just fits into the same workflow as your orginal script... I love it, at
first sight. I hope to get the chance to look at it in depth sometime.
Arnoud Jansveld wrote:
Quote:
> Hi Ozone, you may want to take a look at my Split-Job script; it should do
> what you need and even collects the output (if any) from each asynchronous
> pipeline. In your case, you could run something like
>
> Import-Csv "inputlist.csv" | Split-Job { Upgrade-Agent $_} -MaxPipelines 5 |
> Out-File Upgrade-Agent.log
>
> The blog post with the script is here:
> http://www.jansveld.net/powershell/2...b-version-0-9/
>
> Hope this helps,
> Arnoud