/build/static/layout/Breadcrumb_cap_w.png

How would I create a script to install Java updates

Hi.

I am looking at writing a script to get kace to push out Java updates. I know that it most likely won't do it every time there is an update to Java, I just need to get all of my users on the same version of Java.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: rockhead44 7 years ago
Red Belt
2
tons of good info on this site. 2 Links to start with

http://www.itninja.com/question/managed-install-java-8-update-40

http://www.itninja.com/question/silent-uninstall-java-all-versions

Here's a quick acript to start with once you extract the .msi

================================================

@echo off

taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe

WMIC product where "Name LIKE '%%java%%'" call uninstall /nointeractive

taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe

msiexec /i jre1.8.0_92.msi INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 WEB_JAVA=1 WEB_ANALYTICS=0 EULA=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0 /qn


exit

=================================


Posted by: anonymous_9363 7 years ago
Red Belt
0
Remember that you should also take care of the brain-dead "out-of-date" warning that JREs now display. The procedure for doing that is also documented here at ITN. Search for 'deployment.properties'.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ