How to uninstall a program through command prompt?

My laptop has operated a windows 7 ultimate.

But, after updating completely, I set up an anti virus from internet. That's MPC Cleaner. Then, not a longer time I wanted it to uninstall from my laptop because I wanted to get an anti virus from Microsoft Corporations only.

I have operated a Startup Repair many times, but there was still the same result; windows is still not work at all!

When I searched whether any wrong programs over there.., but nothing!

The only chance for me is to try once again through a command prompt that is still possible.

But, Can everyone over there give a hand for me about this trouble?

Best Regards,

Budiyanto_994 

Answer
Answer

Hi Budiyanto,

Thank you for posting your query on Microsoft Community.

As per the issue description you are willing to uninstall program through command prompt. If you think that there are some traces of uninstalled program which is causing the issue then you may try to run the Autoruns and see if it helps you to fix the issue.

Let’s Download and run Microsoft AutoRuns utility to remove all the obsolete traces in registry for the uninstalled programs. Autoruns has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and shows you the entries in the order Windows processes them. These programs include ones in your startup folder, Run, RunOnce, and other Registry keys.

Refer the picture below:

Delete all the Yellow or red entries and restart the computer and check if that helps.

Stop a program from running automatically when Windows starts.

http://windows.microsoft.com/en-us/windows/stop-program-running-automatically-windows-starts#1TC=windows-7

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base
How to back up and restore the registry in Windows

The entries in yellow and red are obsolete remnant of old uninstalled software, you can see the image path reads “File not found”. Right click and delete all these obsolete entries, restart the computer and check if that works.

 

If you still face issue and want to know the way how to delete a program using command prompt then try the steps provided below.

  • Click on start.
  • Type cmd in the search box.
  • Right click on command prompt and select the option run as administrator.
  • In the command prompt, type wmic and press Enter.
  • 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.

  • Type in either command below using the exact name of the program (ex: Microsoft Silverlight) listed in above within quotes that you want to uninstall, and press Enter.

(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

  • If prompted, type Y to confirm uninstalling the program, and press Enter. (see screenshot above)
  • When successfully uninstalled, you can close the command prompt.

Hope this would help. If issue still persists post back with current status of your computer and result of proposed suggestion, we will be happy to assist you.

Regards,

Ramesh Kumar.

80 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated January 18, 2021 Views 109,423 Applies to: