title: Downloading jdk using powershell
body: <p>I am trying to download the java jdk using powershell scripting as given in the link below</p>
  
  <p><a href="http://poshcode.org/4224" rel="noreferrer">http://poshcode.org/4224</a></p>
  
  <p>. Here as the author has specified , if I Change the source url where the latest jdk is present 
  i.e.,</p>
  
  <p><a href="http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-windows-x64.exe" rel="noreferrer">http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-windows-x64.exe</a></p>
  
  <p>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?</p>
  
  <p>Here is the code :</p>
  
  <pre><code>$source = "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-windows-i586.exe"
        $destination = "C:\Download\Java\jdk-7u60-windows-i586.exe"
        $client = new-object System.Net.WebClient
        $client.DownloadFile($source, $destination)
  </code></pre>