$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "Software Name"
}
$app.Uninstall()
Edit: Rob found another way to do it with the Filter parameter:
$app = Get-WmiObject -Class Win32_Product `
-Filter "Name="Software Name""
More Related Contents:
- Uninstall and Install App on my Computer silently
- How to do password-less login using plink? [closed]
- Using UTF-8 Encoding (CHCP 65001) in Command Prompt / Windows Powershell (Windows 10)
- How can I find the product GUID of an installed MSI setup?
- How to run a PowerShell script without displaying a window?
- How to run a PowerShell script
- How to run a PowerShell script from a batch file
- $LastExitCode=0, but $?=False in PowerShell. Redirecting stderr to stdout gives NativeCommandError
- WIX Installer with modern look and feel
- How to run a PowerShell script within a Windows batch file
- Unix tail equivalent command in Windows Powershell
- PowerShell: Setting an environment variable for a single command only
- Capture program stdout and stderr to separate variables
- Convert a small PS script into a long line in a .BATch file
- How does PowerShell treat “.” in paths?
- How do you successfully change execution policy and enable execution of PowerShell scripts
- PowerShell stripping double quotes from command line arguments
- Get Folder Size from Windows Command Line
- WMI “installed” query different from add/remove programs list?
- How to create a Run As Administrator shortcut using Powershell
- Uninstall without an MSI file
- Start a detached background process in PowerShell
- Best way to have crash dumps generated when processes crash?
- Windows Script Host Error: Invalid character – Code:800A03F6 – Source: Microsoft JScript compilation error
- PsExec Throws Error Messages, but works without any problems
- Is there an alternative to GUID when using msiexec to uninstall an application?
- How can I source variables from a .bat file into a PowerShell script?
- MSOnline can’t be imported on PowerShell (Connect-MsolService error)
- Run batch file in Windows Installer Commit
- Powershell: What’s the difference between Alias and Function?