Q. Uninstaling a Software Package from the Command Line?
John Savill
January 23, 2008
1 Min Read
How can I uninstall a software package from the command line?
A. Assuming the software was installed via normal Windows install and is known to Windows Management Instrumentation (WMI), you can uninstall the application via the WMI command line (WMIC) once we know the product's name (which can be found with the "wmic product get name /value" command). Once you know the product name, you can uninstall application by calling the application's uninstall routine. For example, to uninstall URGE from my machine I would run the following command:
wmic:rootcli>product where name="URGE" call uninstallExecute (\SAVDALVST01ROOTCIMV2:Win32_Product.IdentifyingNumber="{8BBF6DFD-0AD9-43A7-9FBD-BF065E3866AF}",Name="URGE",Version="1.1.9060.0")->Uninstall() (Y/N/?)? yMethod execution successful.Out Parameters:instance of __PARAMETERS{ReturnValue = 0;};Note that the uninstall prompt scrolls off the screen, so you'll need to scroll over to type Y to uninstall.
— John Savill
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like