Difference between revisions of "Windows uninstall app via powershell"
Jump to navigation
Jump to search
(Created page with "https://techgenix.com/how-to-uninstall-software-using-powershell/ ``` $app = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Sensu Agent”} $app.uninstall(...") |
|||
Line 3: | Line 3: | ||
``` | ``` | ||
+ | sc.exe stop/delete SensuAgent | ||
$app = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Sensu Agent”} | $app = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Sensu Agent”} | ||
$app.uninstall() | $app.uninstall() | ||
``` | ``` |
Latest revision as of 17:05, 19 September 2022
https://techgenix.com/how-to-uninstall-software-using-powershell/
sc.exe stop/delete SensuAgent $app = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Sensu Agent”} $app.uninstall()