r/PowerShell • • 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

74 comments sorted by

View all comments

3

u/jsiii2010 Mar 05 '20 edited Mar 05 '20

Ways to run things in parallel in powershell:

  1. jobs (processes) (or threadjobs in PS 6/7 or the module)

  2. start-process

  3. workflows (going away)

  4. powershell api with another runspace (more difficult to code)

  5. invoke-command with an array of multiple computers, which can all be localhost (have to be admin)

  6. multiple session (runspace) tabs in the ISE, or remote powershell ISE tabs (bye ISE)

  7. Powershell 7 has a foreach-object -parallel, as an alternative for #4