none
Uninstalling Applications in Server Core

    Question

  • Hi,

     

    How do I uninstall applications/programs in Server Core as there is no add/remove programs option.

     

    Thanks,

    Sudhir

    Monday, August 27, 2007 11:36 AM

Answers

  • Sudhir,

     

    I've been thinking about this too and I came to the conclusion that there are actually four places to watch for the information that the "Add or Remove programs" Control Panel applet (appwiz.cpl) shows:

    • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
      (use regedit.exe or regedt32.exe to modify the registry)
    • wmic product (which only shows installed software through msiexec, fast but incomplete)
    • sc query type= driver (for installed drivers)
    • wmic qfe (for installed Windows updates)

    How to uninstall software depends on where you found the program to uninstall. Respectively you should:

    • Use the UninstallString registry value as commandline
    • Use msiexec /x package.msi (More info)
    • Use pnputil -u -f drivername.inf (More info)
    • Use Wusa.exe patchname.msu

     

    I hope this information helps.

    Monday, August 27, 2007 9:21 PM

All replies

  • Hi,

     

    It depends on the application/program. If it is an MSI based install you can run: msiexec /uninstall <msi name>

     

    You can run msiexec /? to see all the options and syntax.

     

    Andrew

    Monday, August 27, 2007 7:48 PM
  • Sudhir,

     

    I've been thinking about this too and I came to the conclusion that there are actually four places to watch for the information that the "Add or Remove programs" Control Panel applet (appwiz.cpl) shows:

    • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
      (use regedit.exe or regedt32.exe to modify the registry)
    • wmic product (which only shows installed software through msiexec, fast but incomplete)
    • sc query type= driver (for installed drivers)
    • wmic qfe (for installed Windows updates)

    How to uninstall software depends on where you found the program to uninstall. Respectively you should:

    • Use the UninstallString registry value as commandline
    • Use msiexec /x package.msi (More info)
    • Use pnputil -u -f drivername.inf (More info)
    • Use Wusa.exe patchname.msu

     

    I hope this information helps.

    Monday, August 27, 2007 9:21 PM
  • Hi,

     

    Thanks a lot for your inputs. I was able to uninstall the application using the UninstallString from the registry. Appreciate your inputs in helping us resolve this.

     

    Regards,

    Sudhir

    Tuesday, August 28, 2007 6:12 AM
  • # Your career requires PowerShell
    # You find the GUID of the app first

    Get-WmiObject -Class Win32_Product | Select-Object Name,IdentifyingNumber

    # Then you invoke WMI method "Uninstall"

    Get-WmiObject -Class Win32_Product | Where-Object {$_.IdentifyingNumber -match '{786970C5-E6F6-4A41-B238-AE25D4B91EEA}' |  Invoke-WmiMethod -Name "Uninstall"

    Thursday, October 26, 2017 6:26 PM
  • WHERE the GUID is replaced by whatever GUID you found in step 1
    Thursday, October 26, 2017 6:26 PM
  • hi and thank's for sharing:

    There are a missing "}" at the end of the GUID, wich close the { opened by the "Where-Object" call, for the uninstall commad;

    Get-WmiObject -Class Win32_Product | Where-Object {$_.IdentifyingNumber -match '{786970C5-E6F6-4A41-B238-AE25D4B91EEA}}' |  Invoke-WmiMethod -Name "Uninstall"

    this was the only working method to remove symantec backup exec on Core 2012 R2 Server.


    Monday, December 18, 2017 11:01 AM
  • Thanks Michele.

    It would actually be:

    Get-WmiObject -Class Win32_Product | Where-Object {$_.IdentifyingNumber -match '{786970C5-E6F6-4A41-B238-AE25D4B91EEA}'} |  Invoke-WmiMethod -Name "Uninstall"

    Just in case someone is copying and pasting. Thanks for this.

    Friday, May 4, 2018 8:18 PM