Programs - Uninstall using Command Prompt in Windows

Page 1 of 7 123 ... LastLast
    Programs - Uninstall using Command Prompt in Windows

    Programs - Uninstall using Command Prompt in Windows

    How to Uninstall Programs using Command Prompt in Windows
    Published by
    Designer Media Ltd


    How to Uninstall Programs using Command Prompt in Windows


       Information
    This tutorial will show you how to uninstall programs using a command prompt in XP, Vista, Windows 7, and Windows 8.

    You must be logged in as an administrator to be able to do the steps in this tutorial.

       Note
    This will only list programs that use Windows Installer when installed.

    It is recommended to uninstall a program in Programs and Features if able instead to have a full list of installed program.





    Here's How:

    1. Do step 2 or 3 below for what you would like to do.

    2. Open an elevated command prompt in XP/Vista/Windows 7 or Windows 8, and go to step 4 below.

    3. Open Safe Mode with command prompt in XP/Vista/Windows 7 or Windows 8, and go to step 4 below.

    4. In the command prompt, type wmic and press Enter. (see screenshot below)
    Programs - Uninstall using Command Prompt in Windows-uninstall_programs_command_line-1.jpg
    5. Type product get name and press Enter. (see screenshot below)
    NOTE: This will give you a list of program names installed on your computer to use in the next step. This list will not always have all of the programs listed in Programs and Features though.
    Programs - Uninstall using Command Prompt in Windows-uninstall_programs_command_line-2.jpg
    6. Type in either command below using the exact name of the program (ex: Microsoft Silverlight) listed in step 5 above within quotes that you want to uninstall, and press Enter. (see screenshot below)
    (To be prompted Y/N to approve. Recommended)

    product where name=”name of program” call uninstall


    (To NOT be prompted Y/N to approve.)

    product where name=”name of program” call uninstall /nointeractive


    Programs - Uninstall using Command Prompt in Windows-uninstall_programs_command_line-3.jpg
    7. If prompted, type Y to confirm uninstalling the program, and press Enter. (see screenshot above)

    8. When successfully uninstalled, you can close the command prompt. (see screenshot below)
    Programs - Uninstall using Command Prompt in Windows-uninstall_programs_command_line-4.jpg
    That's it,
    Shawn













  1. Posts : 570
    Windows 7
       #1

    Very nice tutorial just tried this on a piece of software instead of the Programs and Features way :). Worked like a treat!
      My Computer


  2. Posts : 8,476
    Windows® 8 Pro (64-bit)
       #2

    Great tutorial Shawn. It will be helpful when dealing with viruses. I assume these commands will also work in Safe mode with command prompt?
      My Computer


  3. Posts : 72,047
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #3

    Thank you Dinesh. Yep, it'll work in Safe Mode with command prompt as well. :)
      My Computer


  4. Posts : 1
    64 bit windows 7
       #4

    when i type 'get product name' nothing happens is this because i didnt open it in safe mode?
      My Computer


  5. Posts : 72,047
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    Hello NtudaI, and welcome to Seven Forums.

    No. You could do it in an elevated command prompt, or in Safe Mode w/command prompt. However, the command is product get name instead. Sometimes it may take a moment to see a list of installed programs if you have a lot installed.

    Hope this helps, :)
    Shawn
      My Computer


  6. Posts : 205
    Windows 7 Home Premium
       #6

    This was nice and easy.. thanks Shawn.. was able to see programs that were not even listed in the normal windows version :)
      My Computer


  7. Posts : 72,047
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    You're most welcome. :)
      My Computer


  8. Posts : 6
    Windows 7 x64
       #8

    Hi, I've tried to follow the directions in your tutorial but when I enter product get name I get
    Node - MININT-BIRNS7C
    ERROR=
    Description = Invalid class

    any help would be appreciated as I can't get Windows to open
    Thanks
    Lauren
      My Computer


  9. Posts : 72,047
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    Hello Lauren, and welcome to Seven Forums.

    Please go ahead and post screenshots showing all of this (program name and uninstall command) in the command prompt to see if it may help ID what the issue may be. :)

    Screenshots and Files - Upload and Post in Seven Forums
      My Computer


 
Page 1 of 7 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:19.
Find Us