# Updating to PowerShell v7 (slightly offtopic perhaps)

**URL:** <https://discourse.nodered.org/t/updating-to-powershell-v7-slightly-offtopic-perhaps/29034>\
**Category:** General\
**Created:** [26 June 2020 14:42 UTC](https://discourse.nodered.org/t/updating-to-powershell-v7-slightly-offtopic-perhaps/29034 "2020-06-26T14:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 June 2020 14:42 UTC](https://discourse.nodered.org/t/updating-to-powershell-v7-slightly-offtopic-perhaps/29034/1 "2020-06-26T14:42:02Z")

</div>

As I've only just got round to looking at this myself (thanks to a bunch of senior people not attending a project meeting - a sternly worded email is on its way!), I thought I'd just let people know about PowerShell v7 since it can be of use for certain kinds of processing (and particularly on Windows).

Microsoft are moving away from the original version of PowerShell that is Windows-only to a newer "PowerShell Core" that is cross-platform. v6 was the first version but that is now superseded by v7 which has some long wished-for features & on Windows, also can replace the older v5. (v6 couldn't do everything v5 could on Windows).

Possibly the thing that would most impact Node-RED users is that `||` and `&&` pipe characters are finally supported bringing PS into line with other command shells (including cmd.exe). So you no longer have to worry about using PS with a command line that runs 2 commands - e.g. `npm update && node-red` - previously, if using PowerShell (on Windows say), you would have had to rewrite that as `npm update; node-red` and actually even that does not have quite the same meaning.

If you don't know PS, it is build around Microsoft's [Dot.Net](http://Dot.Net) and so handles .net libraries very well. It is also a streaming/piped language so, for example, reading a massive CSV or Excel file (or DB query) and processing it row-by-row can be done in a very memory efficient way without intermediate variables.

On Windows, you can make PS your default shell which is recommended since it has lots of command aliases that are similar to Linux commands. You can also make it the default terminal for VScode.

If you want to upgrade or install for yourself, you will find a guide here:

> **[Your Guide to Updating to PowerShell 7](https://adamtheautomator.com/updating-to-powershell-7/)**
>
> Learn how to update PowerShell to version 7 on a single machine, using a GPO or using PowerShell itself in this step by step walkthrough.

- [Whats new in v7](https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-70?view=powershell-7)
- [Migrating from v5](https://docs.microsoft.com/en-us/powershell/scripting/install/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7)
- [How to replicate the ISE experience in Visual Studio Code](https://docs.microsoft.com/en-us/powershell/scripting/dev-cross-plat/vscode/how-to-replicate-the-ise-experience-in-vscode?view=powershell-7)

---

<div class="post-metadata">

**Author:** ![greenembrace](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greenembrace/32/42414_2.png) [@greenembrace](https://discourse.nodered.org/u/greenembrace)\
**Post date:** [27 June 2020 04:19 UTC](https://discourse.nodered.org/t/updating-to-powershell-v7-slightly-offtopic-perhaps/29034/2 "2020-06-27T04:19:50Z")

</div>

Thanks Julian for taking the time, it's hard to keep on-top of all the changes that take place in different areas. Uniformity to some degree is a great help in not wasting time remembering different syntax's.

cheers

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 August 2020 04:19 UTC](https://discourse.nodered.org/t/updating-to-powershell-v7-slightly-offtopic-perhaps/29034/3 "2020-08-26T04:19:54Z")

</div>

Closed on 26 August 2020 04:19 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
