Skip to main content
    All apps
    Runtimes
    MSI
    Verified recipe

    OpenJDK 21 Silent Install Switches (Intune & SCCM)

    Silent install switches

    /quiet /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith

    Silent uninstall switches: /quiet /norestart

    Intune Win32 app settings

    Paste these into the Program and Detection rules steps when you add OpenJDK 21 as a Win32 app.

    Install command
    OpenJDK21U-jdk_x64_windows_hotspot.msi /quiet /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith
    Uninstall command
    msiexec /x {OPENJDK_GUID} /quiet /norestart
    Detection rule (File)
    C:\Program Files\Eclipse Adoptium\jdk-21\bin\java.exe
    • Device restart behavior: no restart required.

    SCCM / ConfigMgr deployment type

    Installation program
    OpenJDK21U-jdk_x64_windows_hotspot.msi /quiet /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith
    Uninstall program
    msiexec /x {OPENJDK_GUID} /quiet /norestart

    Values in braces (for example a product GUID) depend on the exact version you deploy. Swap in the value from your installer, or let InstallMage read it for you.

    Deployment notes

    Eclipse Temurin distribution recommended. ADDLOCAL sets PATH and file associations.

    Windows Installer packages install silently with msiexec /i <file>.msi /qn (or /quiet) and uninstall with msiexec /x {ProductCode} /qn.

    Package OpenJDK 21 as .intunewin in under 3 minutes

    Drop in the OpenJDK 21 installer and InstallMage detects the switches, builds the MSI or .intunewin, and generates the install, uninstall and detection commands for you. Free plan, no credit card.

    FAQ

    What are the silent install switches for OpenJDK 21?
    OpenJDK 21 installs silently with /quiet /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith (it uses a MSI installer). Full command: OpenJDK21U-jdk_x64_windows_hotspot.msi /quiet /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith
    How do I silently uninstall OpenJDK 21?
    Run: msiexec /x {OPENJDK_GUID} /quiet /norestart
    What detection rule should I use for OpenJDK 21 in Intune?
    Use a file detection rule. File exists: C:\Program Files\Eclipse Adoptium\jdk-21\bin\java.exe.
    How do I deploy OpenJDK 21 with Intune?
    Wrap the installer as a Win32 app (.intunewin), set the install and uninstall commands above, and add the detection rule. InstallMage can build the .intunewin and generate these commands from the OpenJDK 21 installer in under three minutes.

    More Runtimes silent install switches