I can uninstall the software fine by using the add/remove programs, but since we have several hundred computers I would like to script this. I am using Windows 7 Pro, and have tried with powershell version 2 & 3. The commands that I tried on version 3 are:
$application get-ciminstance win32_product -filter "name like '%softwarename%'"
$application.uninstall()
It appears to work, I can see the object in $application before running the second command. After running the second command the object is gone, should have worked. But when I look in add/remove programs, it is still listed and the install folder is still there. Not sure what it actually did.
After that I tried to uninstall using "wmic" commands manually. Same problem, it thinks it uninstalled, but still in Add/Remove programs.
Any suggestions about what to try next?