I have been struggling for hours now trying to figure out how to uninstall programs via powershell
I have tried uninstall-package in every variety I can find, it does nothing even though it acts as if removes it
get-package -providername programs -includewindowsinstaller -name"avast free antivirus" |uninstall -force
also Get-WmiObject -class win32_product -ComputerName “localhost” does not even list the package. Very frustrating, programs and features removes it just fine, you’d think this would be fairly straight forward in powershell. Need to do this across multiple computers, why I am trying to figure it out on powershell. Sure its got to be more complicated then this, any help would be appreciated.