title: Set proxy through windows command line including login parameters
body: <p>I want to set a proxy throught the command line, first thing I found out is that you have to <strong>run command line with administrator rights</strong> - then the basic proxy set would be:</p>
  
  <pre><code>netsh winhttp set proxy SERVER:PORT
  </code></pre>
  
  <p>This works nice, but I also want to add a login. As you can see I've tried using netsh->winhttp, however <a href="http://technet.microsoft.com/library/cc731131(WS.10).aspx">manual</a> does not say anything about the login part so I just tried:</p>
  
  <pre><code>netsh winhttp set proxy user:password@SERVER:PORT
  </code></pre>
  
  <p>This unfortunately does not work. Is it even possible to achieve something like this in netsh->winhttp?</p>
  
  <p>If so, how? If not => what windows commands should I follow?
  <br> ̶O̶r̶ ̶i̶s̶ ̶t̶h̶i̶s̶ ̶m̶o̶r̶e̶ ̶e̶a̶s̶i̶l̶y̶ ̶a̶c̶h̶i̶e̶v̶e̶a̶b̶l̶e̶ ̶t̶h̶r̶o̶u̶g̶h̶ ̶s̶o̶m̶e̶ ̶W̶i̶n̶d̶o̶w̶s̶A̶P̶I̶ ̶(̶e̶.̶g̶.̶ ̶u̶s̶i̶n̶g̶ ̶C̶/̶C̶+̶+̶)̶?̶</p>
  
  <p>Thanks for help, please feel free to ask any questions if something is unclear.</p>
  
  <p><em>USING: Windows 7, cmd.exe, netsh->winhttp</em></p>
  
  <p><strong>EDIT:</strong> This looks like the C++ way: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa383144(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa383144(v=vs.85).aspx</a> , but a better way for C++ might be to go this way: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa385384(v=vs.85).aspx#general_option">http://msdn.microsoft.com/en-us/library/windows/desktop/aa385384(v=vs.85).aspx#general_option</a>,  - so the remaining question is how to achieve this in command line generally (or even better command-line->netsh->winhttp)?</p>