Windows: Uninstall an Application from the Command Line

Home -> Windows

2459 views

From the computer of: shamanstears (723 recipes)
Created: Jul 23, 2008


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

By using the Windows Instrumentation command-line interface (WMIC), you can easily uninstall an application without having to use the GUI. Once you become familiar with the steps, it will be much faster than having to access the Add/Remove Programs applet in the Control Panel. This Tech-Recipe applies to Windows XP Professional, Windows Vista, Windows Server 2003 and Windows Server 2008.

1. Open a command prompt.

2. Input WMIC and press Return. You will see a prompt that looks like this:

wmic:root\cli>



3. At the new prompt, execute the following command:

product get name



This will generate a list of installed applications.

4. At the prompt, execute the following command:

product where name="<application name>" call uninstall



where application name is the name of the program you wish to uninstall (use the exact name provided by the previously generated list).

For example, if I were wanting to uninstall Adobe Reader 9, my command would look like this:

product where name="Adobe Reader 9" call uninstall



5. When prompted, input y to confirm that you wish to uninstall the application and press Return.

The application will be uninstalled.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  How to Reset Internet Protocol (TCP/IP) in Windows XP
  foobar2000: Run Player from your USB Drive as a Standalone Application
  Vista / Server 2008: Enable or Disable Firewall from the Command Line
  XP: Uninstall Windows Messenger / MSN Messenger
  Remove Program from the Add or Remove Programs List
  XP: Should I uninstall or upgrade Microsoft Java Virtual Machine (JVM)?
  When Windows Will Not Let You Uninstall or Reinstall a Program
  Windows: List Installed OS Hotfixes and Service Packs from the Command Line
  CMD: Add text to clipboard in DOS box/command line
  Uninstall of McAfee Personal Firewall Kills Internet and TCP/IP Connections

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.