Disable Java Auto Update by Script

The below is a very short script that will disable the auto update feature of Java. While it is always best to keep Java at the latest version, if you are working with legacy software it may not always be practical.

I have tested is on JRE 6 update 16 but it should also work with other versions.

on error resume next 
Set objShell = CreateObject("WScript.Shell") 
'Disable auto update 
regKey = "HKLM\SOFTWARE\JavaSoft\Java Update\Policy\EnableJavaUpdate" 
regValue = 0  '0 Disable 1 Enable Auto Update

objShell.RegWrite regKey, regValue, "REG_DWORD" 

Set objShell = nothing

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.