Back to Documentation
Windows MSI Uninstall
Find and remove software via command line
WindowsPowerShell
When to Use
- • Software doesn't appear in Add/Remove Programs
- • Need to uninstall silently for scripting/automation
- • Standard uninstaller is broken or missing
- • Deploying uninstall via RMM or group policy
Step 1: Find the Product GUID
Run this PowerShell command to search for installed software and get its GUID:
PowerShell
Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "*INSERT NAME*" } | Select-Object Name, IdentifyingNumberReplace *INSERT NAME* with part of the software name (wildcards supported).
Example Output
Name IdentifyingNumber
---- -----------------
Adobe Acrobat Reader DC {AC76BA86-7AD7-1033-7B44-AC0F074E4100}The IdentifyingNumber is the GUID you need.
Step 2: Uninstall Using msiexec
Use the GUID from Step 1 with msiexec:
Command Prompt (Admin)
msiexec.exe /X {GUID} /quietExample
Command Prompt (Admin)
msiexec.exe /X {AC76BA86-7AD7-1033-7B44-AC0F074E4100} /quietCommon msiexec Options
| Flag | Description |
|---|---|
/X | Uninstall the product |
/quiet | Silent mode, no user interaction |
/qn | No UI at all |
/qb | Basic UI (progress bar only) |
/norestart | Suppress restart after uninstall |
/l*v log.txt | Verbose logging to file |
Important Notes
- • Run PowerShell/CMD as Administrator
- •
Win32_Productquery can be slow on systems with many installed programs - • Some software may require a restart to complete uninstall
- • This method only works for MSI-installed software