• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TECHDIIP

  • Tech
  • Windows
  • Powershell
  • Scripts
  • News
  • Games

Uninstall Software from command line | Windows 10 | Server 2016 | 2012

Software uninstall from the command line, one can uninstall any software installed on window workstation or server operating using the command line, this article explains how to  uninstall any software or application from command line, here are simple steps. We can uninstall any software from the windows command line, there are two methods available, using the WMI method and uninstall registry string. Generally, windows administrator deal with many computers and as part of their work they work on product uninstallation and upgrades, using command line user interaction is not required, one can automate the uninstallation process and same with uninstall registry string, here are the simple steps this article explains how we can uninstall any software without any user interaction. Uninstall the software using WMI product syntax:

wmic product where “description=’program name’ ” uninstall

Using the above syntax let’s uninstall some of the software installed on the local computer.

wmic product where “description=’adobe acrobat reader DC’ ” uninstall

In the above example, I’m uninstalling the software adobe reader DC from the local computer. It takes a couple of minutes to uninstall the product, again it depends on the size of the software product. Here is the output after successfully uninstalled adobe reader DC.

Output:

C:\Windows\system32>wmic product where “description=’adobe acrobat reader DC’ ” uninstall Executing (\\DESKTOP-SV9FF3Q\ROOT\CIMV2:Win32_Product.IdentifyingNumber=”{AC76BA86-7AD7-1033-7B44-AC0F074E4100}”,Name=”Adobe Acrobat Reader DC”,Version=”20.006.20034″)->Uninstall() Method execution successful. Out Parameters: instance of __PARAMETERS { ReturnValue = 0; };
Here is the screenshot of the same execution from the command line.
Let’s uninstall other production like Java:

wmic product where “description=’Java 7 Update 81 (64-bit)'” uninstall

Output: c:\>wmic product where “description=’Java 7 Update 81 (64-bit)'” uninstall Executing (\\mypc\ROOT\CIMV2:Win32_Product.IdentifyingNumber=”{34A24AE4-039D-4CA4-87B4-2F06417079FF}”,Name=”Java 7 Update 79 (64-bit)”,Version=”7.0.790″)->Uninstall() Method execution successful. Out Parameters: instance of __PARAMETERS { ReturnValue = 0; }; Like this, we can uninstall any software product that is installed on the local computer, all you need to find a description of the software product and execute as above. Note: Make sure you have all privileges to run these wmi commands, you may runinto issues if you don’t have sufficient privileges. Thank you for reading this article, if you have any questions please let us know. Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Fixed : Page fault in nonpaged area 2022
  • Solved: Ethernet doesn’t have a valid IP configuration 2022
  • 5 Best Free Youtube Video to MP3 Converters in 2022
  • Fixed : Audio renderer error 2022
  • Fixed: Discord search not working 2022
  • About Us
  • CONTACT US
  • Disclaimer
  • Privacy Policy

Copyright © 2022 techdiip.com