Install and uninstall Java through Powershell – SCCM

I needed to deploy Java in one of our enterprise environments with a lot of old Java still laying around, I needed to upgrade all to the new version and remove all old versions as they are a security threat. Java don’t have the option to remove all previous installations, I guess its because its a shitty software, but what do I know.

Here is my solution to remove all previous Java installations and install the new Java

Leave a Reply