Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: 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 Brink
06 Jan 2013
Published by

How to Uninstall Programs using Command Prompt in Windows


information   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   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)
Name:  Uninstall_Programs_Command_Line-1.jpg
Views: 389602
Size:  37.4 KB
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.
Name:  Uninstall_Programs_Command_Line-2.jpg
Views: 392740
Size:  75.2 KB
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


-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)
-uninstall_programs_command_line-4.jpg
That's it,
Shawn











06 Jan 2013   #1
D3LL

 
 

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


My System SpecsSystem Spec
07 Jan 2013   #2
Dinesh

Windows® 8 Pro (64-bit)
 
 

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 System SpecsSystem Spec
07 Jan 2013   #3
Brink

64-bit Windows 10 Pro
 
 

Thank you Dinesh. Yep, it'll work in Safe Mode with command prompt as well.
My System SpecsSystem Spec
.

14 Oct 2013   #4
NtudaI

64 bit windows 7
 
 

when i type 'get product name' nothing happens is this because i didnt open it in safe mode?
My System SpecsSystem Spec
14 Oct 2013   #5
Brink

64-bit Windows 10 Pro
 
 

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 System SpecsSystem Spec
14 Oct 2013   #6
nooruddin76

Windows 7 Home Premium
 
 

This was nice and easy.. thanks Shawn.. was able to see programs that were not even listed in the normal windows version
My System SpecsSystem Spec
14 Oct 2013   #7
Brink

64-bit Windows 10 Pro
 
 

You're most welcome.
My System SpecsSystem Spec
03 Jan 2014   #8
kaishra

Windows 7 x64
 
 

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 System SpecsSystem Spec
03 Jan 2014   #9
Brink

64-bit Windows 10 Pro
 
 

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 System SpecsSystem Spec
Comment

 Programs - Uninstall using Command Prompt in Windows




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
cant get windows 7 pro to open a command prompt
I bought computer that I do not know password. I dont want to reinstall windows. I read that restarting computer and press f8 and choose safe mode with command prompt. Problem is my computer loads the drivers as normal on the black DOS screen but when it gets done and is suppose to give a command...
Installation & Setup
Command Prompt Error on Windows 7
Hello guys, I have problem with CMD When I run Windows error reporting window appears and error message appears: The application was unable to start correctly (0xc0000142). Click OK to close the application Please reply.
General Discussion
windows 7 starter command prompt
Hi, Not sure if this is the right place for this but I have a problem with a netbook where it has lost the file actionqueue.dll and I need to install a copy. The netbook wont boot up but have managed to get it into command prompt. I have put a copy of the file onto a usb stick but I cannot get...
General Discussion
Help me to get my command prompt working in Windows 7
I don't know what had happened to my CMD :( It's not executing any command.As far as i remember i din't tweak or played with the system files and CMD. Today when i need to run it it din't execute the commands. I'm attaching the screenshot also. help me I'm in desperate need !:cry:
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
Command Prompt From The Windows DVD
I started to use the Windows DVD to run some diagnostics in Command Prompt, but instead of displaying C:\users\administrator, as I'm accustomed to, it said X:\Sources> instead. Not knowing what this meant, I attempted to CD to C:, but it always said that it couldn't find the path specified. How...
Performance & Maintenance


Our Sites

Site Links

About Us

Find 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 16:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App