I'd like to create a job that constantly runs so that when a computer checks in with some software it shouldn't have installed it will uninstall it. Is this possible?
1 Comment   [ + ] Show Comment

Comments

  • I've setup some smart labels that detect specific programs. I then setup different uninstallers / scripts I need to remove those products and just assign them to the label to kick off the uninstaller.
Please log in to comment

Answers

0
You can do this with Managed Installs. Check the option "Override Default Installation" and choose "Uninstall". In the command line enter the silent uninstall string, for example. This will create a Managed Un-Install. Machine checks in with the software installed, command runs, uninstalling it.

Answered 02/22/2015 by: jegolf
Red Belt

  • it is a good way but you need to do this for every version.
    An alternate would be an offline script which calls the wmic uninstaller directly (having this for Java for other reasons, since I had a big Java issue in my env so I needed to uninstall all Java versions and reinstall it cleanly. I had over 30 different versions in the env, so I decided not create 30 uninstallations ;)
    Launch “$(KACE_SYS_DIR)\cmd.exe” with params “/c wmic product where ”name like 'java%%'“ call uninstall”.
    • Can you flesh this procedure out some more please? I am new to the Kace 1000 and this is one of my tasks is to remove many versions of old software.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share