Windows uninstall app via powershell

From UVOO Tech Wiki
Revision as of 17:05, 19 September 2022 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()