locked
How to uninstall Software using power shell RRS feed

  • Question

  • How to uninstall Software using power shell?

    Like Chrome 

    Friday, March 29, 2019 5:31 PM

All replies

  • Just execute the uninstaller the same as you would do at any prompt.  There is no special command for this in PowerShell.


    \_(ツ)_/

    Friday, March 29, 2019 6:12 PM
  • Hi im talking about this script

    $app = Get-WmiObject Win32_Product -ComputerName "SOME COMPUTER" | where { $_.name -eq "Citrix Receiver Updater" } $app.Uninstall()  its not working for me 


    Friday, March 29, 2019 7:24 PM
  • Hi im talking about this script

    $app = Get-WmiObject Win32_Product -ComputerName "SOME COMPUTER" | where { $_.name -eq "Citrix Receiver Updater" } $app.Uninstall()  its not working for me 


    So what is the issue.  That will work if the install was done with MSI.  Other apps are not installed with MSI so that won't work.


    \_(ツ)_/

    Friday, March 29, 2019 7:37 PM
  • get-package
    uninstall-package

    Saturday, March 30, 2019 4:33 AM
  • $app = Get-WmiObject -ComputerName <IP Address> -Class Win32_Product -Filter "Name = '<Package Name>'"

    $app.Uninstall()

    Try this one

    Saturday, March 30, 2019 8:27 AM
  • Hi 

    Please let us know relevant logs or errors so that we can help you.

    Please don't forget to mark the correct answer, to help others who have the same issue.

    Regards,

    Ram
    Sunday, March 31, 2019 5:01 AM