Automate Install Microsoft Build of OpenJDK with PowerShell #278
|
Due to security requirements, we need to upgrade java 8, 11, and 17, every month on 100s of servers running Windows 2012, 2016, and 2019. We are trying to automate the process using PowerShell.
|
Answered by
MSIH
Jun 8, 2022
Replies: 2 comments 16 replies
|
Hi MSIH LLC (@MSIH), You can use the following command in PowerShell to download a JDK: Invoke-WebRequest -Uri https://aka.ms/download-jdk/microsoft-jdk-17-windows-x64.zip -OutFile jdk-17.zip -UseBasicParsing
Expand-Archive -Force jdk-17.zip -DestinationPath c:\
Remove-Item jdk-17.zip -ForceAll vanity URLs are published here: https://docs.microsoft.com/en-us/java/openjdk/download-major-urls |
4 replies
|
I am not sure I understand the logic of not publishing the msi files and all the LTS versions of java (8,11,17) on the vanity URL page. They already have the files and probably the automation. The URL on that page are only for Windows and windows uses MSI to install programs and tools. |
12 replies
Answer selected by
karianna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure I understand the logic of not publishing the msi files and all the LTS versions of java (8,11,17) on the vanity URL page. They already have the files and probably the automation. The URL on that page are only for Windows and windows uses MSI to install programs and tools.