Solved

Server 2008r2: uninstall

Posted on 2016-10-21
5
63 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 41

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 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
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 …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

724 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