Uninstalling most software on your system is very easy. you may simply go to Programs and Features in the Control Panel or Apps & features in your Settings to uninstall them. However, these programs do not display all the software on your system. What’s more, you can’t uninstall many store apps using such tools.

It makes PowerShell the best option to uninstall any currently installed software from Windows. Moreover, with the new PowerShell core, you may use it on other operating systems as well.

How to Uninstall Software Using PowerShell?

There are different ways to uninstall software depending on the nature or source of the application.

powershell-run

First, openWindows PowerShellusing the commands below and then go to the relevant method:

you may also go through them and apply the necessary cmdlets on a PowerShell script.

Using Uninstall Method for MSI Installed Software

you may utilize the uninstall method under Microsoft.PowerShell.Management to uninstall apps that you installed on your computer using a Microsoft Installer (MSI) script.

get-wmi-objecy

While you may’t use it touninstall other apps, such as those that used the EXE installer, it is possible to use it on remote computers in the same network.

Here’s how you may use this method:

With Uninstall-Package Cmdlet for Other Software

The above method does not support uninstalling apps that used the PackageManagement module for installation. This is why when you access the Programs and Features on the Control Panel (appwiz.cplon Run), you will see more applications on the list.

get-wmi-variable-uninstall

You need to utilize the PackageManagement cmdletUninstall-Packageto remove these apps. you may also uninstall some apps that used.msiinstaller using this cmdlet. Here’s what you need to do:

There are also other attributes you may use with these cmdlets. Since we have only described the necessary and most used ones in this article, we recommend visiting theirofficial documentationto get more information.

Using UninstallString Registry Entry for All Software

get-package-provider

uninstall-package

get-childitem-uninstall-string

get-appx-package

Get-appx-package-remove