Installing java in VM using custom script extensions

Varma 1,495 Reputation points
2024-02-03T13:52:24.2333333+00:00

I want to download and install following java software using powershell command, which I want to put as part of custom script execution what command I should use in the custom script exection to download and install following software https://www.oracle.com/java/technologies/downloads/#jdk21-windows

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2024-02-03T15:34:07.01+00:00

    Hi @Varma ,

    maybe this is helpful: Silent install of OpenJDK MSI in PowerShell


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.