r/PowerShell • u/MaximRouiller • Mar 04 '20
Announcing PowerShell 7.0 | PowerShell
https://devblogs.microsoft.com/powershell/announcing-powershell-7-0/?WT.mc_id=reddit-social-marouill
281
Upvotes
r/PowerShell • u/MaximRouiller • Mar 04 '20
3
u/jsiii2010 Mar 05 '20 edited Mar 05 '20
Ways to run things in parallel in powershell:
jobs (processes) (or threadjobs in PS 6/7 or the module)
start-process
workflows (going away)
powershell api with another runspace (more difficult to code)
invoke-command with an array of multiple computers, which can all be localhost (have to be admin)
multiple session (runspace) tabs in the ISE, or remote powershell ISE tabs (bye ISE)
Powershell 7 has a foreach-object -parallel, as an alternative for #4