Reputation: 744
I just updated PowerShell to 7.2.1:
But the old is still installed:
How do I remove the old one? Having both installed is kinda redundant I suppose.
Upvotes: 23
Views: 25470
Reputation: 1
They run alongside so I think you must not do it.
Windows PowerShell ships with the OS and will always be the default until MS changes that. That is not happening anytime soon as MS has publically stated that though PSv5 is not getting any more focus or work, it is not going anywhere. Just like cmd.exe is not going anywhere
Upvotes: 0
Reputation: 21468
You don't. PowerShell Core (6+) installs alongside Windows PowerShell (up to 5.1). Windows PowerShell still contains proprietary code that has not yet been open sourced, or never will be in the foreseeable future. The main difference between the two is that PowerShell Core runs on .NET Core, and Windows PowerShell relies on .NET Framework. There is no more new development for Windows PowerShell, as new features find their way into PowerShell Core instead.
There are unrecommended and unsupported ways to purge the system of Windows PowerShell but you will very literally break parts of Windows in the process. As ofVersion 21H1 (OS Build 22000.466)
Windows PowerShell remains a dependency of the core operating system and likely will be for some time yet.
Upvotes: 35