PowerShell is a cross-platform task automation and configuration management which works from Command-Line. It offers all the features a Command Prompt has to offer.
While it is all-powerful, common users, especially those using the Home version, might find it pointless. So if you are one of those users, and want to uninstall PowerShell from Windows 10, then follow this post.
How to uninstall PowerShell in Windows 10
PowerShell is a feature that Windows installs on top of the regular installation. So if you choose to remove it with any one of these methods, it will not break anything in Windows 10.
- Uninstall like any other App
- Uninstall using Windows Features
- Disable PowerShell using DISM
You can use any of these methods to remove PowerShell.
Read: PowerShell opens at Startup.
1] Uninstall it like any other app
Like other programs, PowerShell can be uninstalled easily.
Type PowerShell in the Start Menu search box. It will reveal all the versions of PowerShell i.e., PowerShell (x86), PowerShell, PowerShell 7, and more. Right-click on any of them, and choose to Uninstall. You can also expand the menu and choose to uninstall it.
The only version which you can not uninstall is PowerShell ISE, aka Windows PowerShell Integrated Scripting Environment. It is useful for developers who can run commands and write, test, and debug scripts in a single Windows-based graphic user interface.
2] Uninstall using Program and Features
- Type Control in the Run prompt (Win + R), and press the Enter key.
- Locate and click on Programs and Features
- Then click on “Turn Windows Feature on or off” link on the left panel
- Locate and Uncheck PowerShell 2.0 from the list of programs which is revealed.
- Click Ok, and let the program complete the process to uninstall PowerShell
3] Disable PowerShell using DISM
Open Command Prompt with elevated privilege by typing CMD in the Run prompt (Win + R) and then pressing Shift + Enter. Once it launches, type, and execute the command to verify.
DISM /online /get-features /format:table | find "MicrosoftWindowsPowerShellV2Root"
If it says, Enable, type the next command to disable it.
Dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root"
In case you change your mind, you can execute the following command to enable it again.
Dism /online /Enable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root"
TIP: You can also disable PowerShell using Security policy and Local Group Policy Editor in Windows 10
While PowerShell on itself can stay, and you don’t have to remove it at all. In fact, if you leave it, it may come in handy someday. It is the tool that you will need to uninstall pre-installed apps. So you may consider keeping it.
I hope the post helped you remove PowerShell from your Windows 10 PC.