Replies: 2 comments 4 replies
-
There is nothing that migrates from one to the other, they are separate shells.
While it makes every effort to be backward compatible there are many breaking changes, different command line options, parameter interpretations, default behaviours, character encodings etc.
That should be entirely a choice for the user. There is a proposal to ship PowerShell 7 alongside PowerShell 5, but at the moment it is still a proposal. If you read that discussion it is not such a simple matter. Operating systems should be about providing basic functionality, if that requires apparent duplication of function then so be it. An ARM64 version of windows has 4 complete sets of binaries, for ARM32, ARM64, x86 and AMD64. Internet Explorer coexisted with Edge for many years. A single installation of Linux can have sh, bash, zsh, ksh, csh and more. While some are more recent than the others it does not imply that one is better than the other for a specific purpose. The last thing in the world that anyone needs is all their powershell scripts breaking due a windows update. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think it's possible to simply abandon powershell.exe today, primarily due to different licenses. Unlike PowerShell Core, Windows Powershell is closed-source and this code can't be used directly, only by invoking the powershell.exe process |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
powershell.exeshould callpwsh.exeinstead.All I'm saying is that I would like an easy way to migrate from PowerShell 5 to PowerShell 7 in a way that every script/scheduled task/program that calls
powershell.exewill instead use PowerShell 7 (pwsh.exe).Yes, I am aware that are some changes and some cmdlets have been removed between the versions, so not all PowerShell 5 scripts will work the same and some errors might appears (and that PowerShell 7 requires newer .NET) , but still, my point stands - Currently I find it hard to migrate from PowerShell 5 to PowerShell 7 and I wish there was an easy way considering that Microsoft develops Windows and PowerShell.
Windows should ship PowerShell 7 out-of-the-box (even in LTSC versions) and update it using Windows Update.
Beta Was this translation helpful? Give feedback.
All reactions