Solved

Server 2008r2: uninstall

Posted on 2016-10-21
5
40 Views
Last Modified: 2016-10-28
Hello experts,

Is there a command line way to uninstall a product from "programs and features".  (Instead of going to control panel/programs and features and then right click uninstall)

Thank you.
0
Comment
Question by:Parity123
5 Comments
 
LVL 38

Expert Comment

by:Adam Brown
Comment Utility
You would use the Remove-windowsfeature cmdlet in Server 2008: https://msdn.microsoft.com/en-us/library/ee662310.aspx
0
 
LVL 39

Accepted Solution

by:
footech earned 500 total points
Comment Utility
All the programs you see under Programs and Features are listed under keys in the registry locations:
 - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
 - HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall (only on a 64-bit system)
Though not all the items present in the registry are listed in Programs and Features.  For a program which you want to uninstall, look for a subkey which corresponds with the program, then in the subkey look for a registry entry with the name "UninstallString".  Often you can run the string listed there to uninstall the program, however, that's not always the case.  Sometimes that will bring up a dialog where you have to choose what you want to do (like Repair or Uninstall).  In short, it can vary on a case-by-case basis.

You don't say how you want to make use of this.  If you're looking for a way to uninstall a product remotely (or in any situation where you don't have a desktop session, i.e. a GUI), then the uninstall must be silent.  The UninstallString data may not be the correct one to kick off a silent uninstall, and depending on the product that might not even be an option.
0
 
LVL 6

Expert Comment

by:No More
Comment Utility
DISM /online /get-features /format:table | find “Enabled” | more     - to see list of them

Dism /online /Disable-Feature /FeatureName:TelnetServer    - To remove
0
 

Author Comment

by:Parity123
Comment Utility
This is not a Windows feature I am trying to uninstall. It is a 3rd party app.
0
 
LVL 39

Expert Comment

by:footech
Comment Utility
Yeah, the others misunderstood.  In case you didn't pick up on it, mine applies to applications.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now