Uninstall software from multiple computers
To uninstall software from multiple computers you must determine the name of the software you want to uninstall.
Get the list of installed applications from a computer:
Get-WmiObject -Class Win32_Product | select name
If you want to see the programs on a remote computer user the -computername option.
Find the program you want to uninstall, for example “Sophos Patch Agent” from 3 computers:
$collection = 'wks001','wks002','wks003'
foreach ($item in $collection)
$app = Get-WmiObject -Class Win32_Product -Filter "Name = 'Sophos Patch Agent'" -ComputerName $item
This will uninstall the software (one at a time) from the computers.