Batch Script: Purge Java

Due to the recent disclosures and most especially yesterday’s announcement of Java vulnerabilities I thought I should release my Java Purge Script.  You can read more information about the most recent events in the links at the bottom in the More Information section.

This script is part of a suite I’ll be releasing soon that I use for pushing patches and batches to remote computers that allows you to stage the files in advance (first runtime) and then execute them during your patch window using psexec (second runtime) to give you better control on when and how the patches are executed.  No ETA on that one yet as it’s a living file still.

For this script you can run it locally or push it with a policy to run on target systems.  It should remove all versions of JRE and JDK from the target system.

As always;  If you have any suggestions for improvements please let me know.

@echo off
GOTO START
#################################################
# Purge Java Script by:                         #
#      Nathan V                                 #
#      Cyber Security Analyst                   #
#      http://nathanv.com                       #
#                                               #
# For assistance and new versions contact       #
#      nathan.v@gmail.com                       #
#                                               #
# This file updated:                26 SEP 2012 #
#                                               #
# Purge Java (c) 2012 Nathan V  License: GPLv3  #
# This is free software, and you are welcome to #
# redistribute it under certain conditions; See #
# http://www.gnu.org/licenses/gpl.html          #
#################################################

:START
net stop JavaQuickStarterService
taskkill /f /im jqs.exe /im jucheck.exe /im javaw.exe

msiexec /x {1111706F-666A-4037-7777-202328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {1111706F-666A-4037-7777-203328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {1111706F-666A-4037-7777-210328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {1111706F-666A-4037-7777-211328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {1666FA7C-CB5F-11D6-A78C-00B0D079AF64} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {2222706F-666A-4037-7777-202328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {2222706F-666A-4037-7777-203328764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83214204FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215002FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215004FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215005FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215006FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215007FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215010FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215011FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83215012FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216000FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216010FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216011FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216012FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216013FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216014FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216015FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216016F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216016FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216017F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216017FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216018FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216019F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216019FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216020F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216020FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216022F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216022FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216023F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216023FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216024F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216024FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216025F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216025FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216026F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216026FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216027F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216027FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216028F0} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216028FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216029FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216030FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216031FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216032FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216033FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216034FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216035FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216050FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217000FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217001FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217002FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217003FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217004FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217005FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217006FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217007FF} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150000} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150010} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150020} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150030} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150040} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150050} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150060} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150070} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150080} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150090} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150100} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150110} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150120} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150130} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150140} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150210} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150220} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160000} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160010} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160020} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160030} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160031} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160040} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160050} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160060} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160070} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160080} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160090} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0150060} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160200} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160210} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160220} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160230} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160240} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160250} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160260} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160270} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160280} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160290} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160310} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160320} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0160330} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170000} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170010} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170020} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170030} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170040} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {32A3A4F4-B792-11D6-A78A-00B0D0170050} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {4A03706F-666A-4037-7777-5F2748764D10} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142000} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142010} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142020} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142030} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142040} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142050} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142060} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142070} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142080} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142090} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142100} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142110} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142120} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142130} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142140} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142150} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress
msiexec /x {7148F0A8-6813-11D6-A77B-00B0D0142160} /qn /norestart /log c:\temp\purgejava.log REBOOT=Suppress

More Information:

Leave a Reply

Your email address will not be published. Required fields are marked *