title: How to download an image file from a website using PowerShell or from Windows command line?
body: <p>I'm trying to download an image from the internet using a command prompt like PowerShell or the Windows command line.</p>
  
  <p>I tried running this line that I found online:</p>
  
  <pre><code>wget http://imgur.com/ -OutFile out.jpg
  </code></pre>
  
  <p>That's an example, not the actual parameters that I used.</p>
  
  <p>I ran this in PowerShell, but I get</p>
  
  <blockquote>
    <p>System.UnauthorizedAccessException</p>
  </blockquote>
  
  <p>I'm not very experienced in the command line and don't know what to do from here.</p>