Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to uninstall software that doesn't have uninstall.exe or an .msi in the install folder?

$
0
0

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?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>