-
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.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Hi @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 -Force All vanity URLs are published here: https://docs.microsoft.com/en-us/java/openjdk/download-major-urls |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.