Downloading jdk using powershell


I am trying to download the java jdk using powershell scripting as given in the link below

. Here as the author has specified , if I Change the source url where the latest jdk is present

the content is not getting loaded , only about 6KB gets downloaded . I have a doubt , whether the download limit in powershell script is only 6KB?

Here is the code :


On inspecting the session on oracle site the following cookie catches attention: oraclelicense=accept-securebackup-cookie. With that in mind you can run the following code:


Downloading jdk using powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply