Remove Java and install Latest Version

At the company where I work we don’t have full domain rights. There is no SCCM Server. There is an other software deploy program that we only have rights to send it to computers, not to create packages. So I create my own scripts to update computers.

This script I use to update Java on all computers. Windows 7 and Windows 10.

Add this script to the machine policy.

 

When a computer has the login screen this batch file runs and removes / installs Java.