Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall PowerShell 5.1 on Windows after installing 72

I just updated PowerShell to 7.2.1:

Powershell 7.2.1

But the old is still installed:

Powershell 5.1

How do I remove the old one? Having both installed is kinda redundant I suppose.

like image 384
Schesam Avatar asked Sep 13 '25 17:09

Schesam


1 Answers

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 of
Version 21H1 (OS Build 22000.466) Windows PowerShell remains a dependency of the core operating system and likely will be for some time yet.

like image 93
Bender the Greatest Avatar answered Sep 15 '25 14:09

Bender the Greatest