Q. Uninstaling a Software Package from the Command Line?

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:root\cli>product where name="URGE" call uninstall
Execute (\\SAVDALVST01\ROOT\CIMV2:Win32_Product.IdentifyingNumber="\{8BBF6DFD-0AD9-43A7-9FBD-BF065E3866AF\}",Name="URGE",Version="1.1.9060.0")->Uninstall() (Y/N/?)? y
Method 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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish