Hi Everyone,
Ive had a bit of a search around, even on the microsoft website for powershell and there is only open ended questions about this topic in there. Hoping that someone here might know what is going on so i can finish my script.
Is it possible to multithread in the tradional sense in powershell? if so, how do i do it? if not, is there a way around it.
Example.
I am looking at running multiple new-vm cmdlets using the -runasync switch and want to use the wait-task cmdlet after each one of them has finished.
Thanks,
James.
I have a blog article showing you how to do this in V2:
And another showing how to get progress back from your threads:
Nice Ryan!