Hi guys,


Can you unistall all java version with a script thats easy to put into sccm?


0 Comments   [ + ] Show Comments


Please log in to comment



Not an SCCM shop but we use a simple batch file to remove all of our environment's existing versions of java and then deploy the newest version.

By calling msiexec /x{guid} /queit /norestart. all of Java's MSI uninstall codes are identical except a few bits at the end to identify the version for example:

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216021FF} /quiet /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217011FF} /quiet /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217013FF} /quiet /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86417015FF} /quiet /norestart

If you notice the only thing changes is "6021" "7011" 7013" "7015", which is java version 6 update 21, 7 update 11, upate 13, and update 15. And if you have happen to have 64-bit simply change the to two digits right before that to 64 or 32.

If you want some more in depth idea have a look at this article:


The answer by SpellJammer towards the very bottom was something I played with as well that worked ok but if you have a lot of installed programs it can take a little while to parse through all of the Win32_Product entries to uninstall all of the matches.

Answered 03/06/2013 by: matiasm
Orange Senior Belt

Please log in to comment

also see


the author states

Last note, script had to be run as an Administrator, pushed through SCCM

Answered 03/06/2013 by: SMal.tmcc
Red Belt

  • http://www.itninja.com/blog/view/java-uninstall-strings-tip-win-7-x64-reg-location-for-uninstall-strings
    also this was in another answer
Please log in to comment
Answer this question or Comment on this question for clarity