Forum Discussion
Pradeep MISHRA
Aug 09, 2020Copper Contributor
Unable to script using Multi-threading
I have one Csv and there are 10 VM and i want to run this script to all the vms in same time (using Multi-threading concept or any other method) not one by one. because if it will run one by one ...
Rolf-42
Aug 11, 2020Iron Contributor
Hello Pradeep MISHRA
If you are able to use PowerShell 7 you may want to consider the new parallel option for the foreach-object Cmdlet.
I hope that helps
Cheers
Rolf
#MCT #LearnWithRolf #TheCloud42
Pradeep MISHRA
Aug 15, 2020Copper Contributor
Rolf-42 ,
I am using below powershell version and unable to using workflow
PS C:\Users\Admin> Get-Host | Select-Object Version
Version
-------
5.1.19041.1
Can you please share a sample ?