Shavlik Script Catalog: Disable Java Updates

Version 5

    Author: Shavlik
    Category: Configuration
    Inputs: None
    Minimum ITScripts engine version required:  8.0.0.0
    Modifies the target machine: Yes
    Name: Disable Java Update Service
    Outputs: None

    Purpose: Disable automatic updates for Java

    Script Version: 1.0.1.0

    Target Type: Any

     

    Technical Description:
    This script will disable the auto update feature of Java.  While many vendors have their own update mechanisms IT Administrators need the ability to centrally manage updates in their environments. This typically leaves auto update notifications popping up on the users' machine and often will cause confusion and sometimes issues within a customer’s environment.

     

    The script begins by determining the OS of the target machine. Depending on the OS, specifically x64 vs. x86 editions, the location of the registry hive for Java varies. Once the OS is determined the script continues with detection of Java on the machine and verifies if the auto update feature is enabled and determines if the Java Scheduler is installed.

     

    AutoUpdate (Key will be set to 0):
    HKLMSoftwareJavasoftJava UpdatePolicyEnableJavaUpdate =  0

     

    Java Scheduler process key (if this key exists it will be deleted):
    SOFTWAREMicrosoftWindowsCurrentVersionRunSunJavaUpdateSched

     

    Possible OpsMon results include:

    "Java is not installed"

    "Java Updater is already disabled"

    "Java Updater successfully disabled"

    "Failed to disable Java Updater"