Wednesday, 31 May 2017

Disable Java Update Batch file.





This simple .bat file can be used to disable Java automatic updates:




@echo off

rem disable java update by policy
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /V EnableJavaUpdate /T REG_DWORD /D 0 /F
if defined programfiles(x86) reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /V EnableJavaUpdate /T REG_DWORD /D 0 /F

REM Remove java update scheduler
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SunJavaUpdateSched" /f
if defined programfiles(x86) reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v "SunJavaUpdateSched" /f

REM kill java updater if started
taskkill /IM jucheck.exe /F
taskkill /IM juscheck.exe /F

exit 0

1 comment:

  1. Thanks for sharing this good blog.This is very important and imformative blog for Java .It's very interesting and useful for students
    Core Java Online Training

    ReplyDelete

Give me you feedback!