How to uninstall Applications with PowerShell Script

In this article, we will discuss how to uninstall Applications with PowerShell Script. In the realm of software management, harnessing the capabilities of PowerShell Script can be a game-changer. Please see How to remove WDS role via the GUI and PowerShell, how to Upgrade Microsoft Office 2019 to 2021 on Mac, and How to uninstall Microsoft SQL Server on Windows. However, When it comes to the task of application uninstallation, PowerShell Script emerges as a powerful ally.
Nonetheless, with command-line prowess and automation, it efficiently removes unwanted applications from your system. Whether a tech enthusiast or an IT professional, mastering app removal through PowerShell Script enhances system maintenance.
Also, see “Remove Office license file: How do you change the account that Office says it belongs to on a Mac“, and “How to install and update PowerShell version 7 on Windows and Linux“.
PowerShell Script for App removal
This is the simple command to execute this task. This command retrieves the installed application named “Software Name” using the Win32_Product class and then uninstalls it. It first searches for the application by matching its name and, once found, executes the uninstall method to remove it from the system.
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "Software Name"
}
$app.Uninstall()
Do not forget to replace the “Software Name” with your application name. Copy the above syntax to a text editor, e.g, notepad.
Please see how to How to uninstall installed Windows Update from Windows, and how to fix “Cross Domain Folders Access: Reference account is Locked out“.
Remove App
EmEditor is the application to uninstall. Execute it across multiple servers using AWS run command, avoiding restarts.
Open the PowerShell console and run the file from the location it is saved and run it. The below is the result that will be displayed
I hope you found this blog post on how to uninstall Applications with PowerShell Script helpful. If you have any questions, please let me know in the comment session.

