• How To?
  • Tips ‘n Tricks
  • WordPress
  • Snippets
  • Software
    • Browsers
    • Downloads
  • Web
  • Tools
    • Character Counter
    • chmod Calculator
    • Entities Encoder
    • Live HTML Editor
    • My IP
  • Contact
Twitter Facebook Google+ RSS
You are here: SumTips » Tips 'n Tricks » Uninstall Programs using Command Prompt in Windows

Uninstall Programs using Command Prompt in Windows

Posted on January 11, 2013 by Renji | Short URL: http://sumtips.com/?p=7910

To uninstall programs using Command Prompt, we are going to use the Windows Instrumentation command-line interface (WMIC) in Windows.

Steps:

Open a Command Prompt instance, type in WMIC, and press Enter. Then to get the list of all installed programs enter this command:

product get name, version


This will populate a list of installed programs on your PC with its complete name and version number.

Note: WMI Product class will give you information only for software installed using MSI technology.

Just the name of the program is enough for uninstalling it, but I have added version number filter so that you don’t have to type in the lengthy names, like for instance, as seen in image, Microsoft Office. We can uninstall it with only its version. If you’d like to see all available information of a program just use this command: product

If needed, you can also save the complete list of installed programs to an external file like this:

product get /format:csv > C:\your\path\programs.csv

Now, to uninstall a particular program, run this command:

product where name="your-program-name" call uninstall

To uninstall with its version run the command like this:

product where version="1.0.1.0" call uninstall

Above commands will prompt you before starting its process. For prompt-less execution or silent uninstall, add the /nointeractive switch:

product where name="your-program-name" call uninstall /nointeractive

On successful uninstall you will get RetrunValue = 0;:

Bonus: To get a list of installed hotfix (QFE – Quick Fix Engineering) updates in WMIC, use this:

qfe list

These command works on Windows 8, Windows 7, Windows Vista, Windows XP Professional, and Server editions.

Related posts:

  • How To Uninstall Specific Windows Essentials Programs
  • Open Explorer Folder from Current Command Prompt Directory Path
  • Selectively Run Programs without UAC Prompt on Windows 7 & 8
  • Save or Print Output from Windows Command Prompt to a Text File
  • Increase Command Prompt and PowerShell Width & Line History
Categories: Tips 'n Tricks, Windows | Tags: Command Prompt, Windows
Directly Download Project Gutenberg eBooks to Dropbox
Windows 8: How to Uninstall Modern UI Apps from Command line

  • Get Updates via Email

  • Recent Posts

    • Transparent Lock Screen for Android
    • How to Conditionally Shutdown Your Computer
    • How to Create Shortcuts for Modern UI Apps in Windows 8.1
    • Display Overlay of Keyboard Shortcuts in your Site like Gmail
    • Turn Off Camera Shutter Sound in Android Devices without Root
    • Gmail for Android: Delete Message Instead of Archive from Notification
  • Random Posts

    • Super Maximize Windows To Your Screen
    • Dropbox 1.0 Final Released
    • Directly Mount TrueCrypt Containers by Double-Clicking
    • Delete Individual Site's Browsing History and Cookies
    • Google Docs: Import Data from One Spreadsheet into Another
    • Facebook Switches 'Ignore' with 'Not Now' in Friend Requests
  • Categories

    • Blogging
    • Games
    • Google
    • How To?
    • Linux
    • Microsoft
      • Windows
    • Miscellaneous
    • Phone
    • Snippets
      • AutoHotkey Snippets
      • CSS Snippets
      • htaccess Snippets
      • JavaScript Snippets
      • PowerShell Snippets
      • WordPress Snippets
    • Social
    • Software
      • Browsers
    • Tips 'n Tricks
    • Wallpapers
    • Web
© SumTips. Contact | Sitemap | Privacy Policy