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

1

u/serendrewpity Mar 05 '20

Not really sure what all the excitement is. I guess I assumed thta powershell could most definitely accomplish something like this already. I'd beed doing parallel processing with function callbacks and ExecQueryAsync in vbScript since its early days in WinXP.

I'm being serious, not picking a fight, I want to know why its a big deal that PS is just now getting around to this.

9

u/SteveL_Msft Software Engineering Manager, PowerShell Mar 05 '20

Regarding specifically parallelization, you could have always done this yourself with PowerShell runspaces. This is what modules like Posh-RS used. The new `ForEach-Object -Parallel` just makes it dead simple for users who don't understand or care about threading. PowerShell 7 has many other improvements over PowerShell Core 6 which itself has many improvements over Windows PowerShell 5.1 (see some of our blogs posts about that: https://aka.ms/psblog)