Windows uninstall app via powershell

From UVOO Tech Wiki
Jump to navigation Jump to search

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()