?
Solved

Server 2008r2: uninstall

Posted on 2016-10-21
5
Medium Priority
?
66 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 42

Expert Comment

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

Accepted Solution

by:
footech earned 2000 total points
ID: 41854475
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 7

Expert Comment

by:No More
ID: 41854909
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
ID: 41856303
This is not a Windows feature I am trying to uninstall. It is a 3rd party app.
0
 
LVL 40

Expert Comment

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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

762 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