title: net use in batch file - yes to prompt
body: <p>I am trying to script a  net use command:</p>
  
  <pre><code>net user UserName ReallyLongPasswordHere /add
  </code></pre>
  
  <p>When I execute this I get a prompt:</p>
  
  <pre><code>The password entered is longer than 14 characters.  Computers
  with Windows prior to Windows 2000 will not be able to use
  this account. Do you want to continue this operation? (Y/N) [Y]:
  </code></pre>
  
  <p>How can I yes thorugh this? I tried:</p>
  
  <pre><code>echo y| net user UserName ReallyLongPasswordHere /add
  </code></pre>
  
  <p>But that doesn't work, it says "No valid response was provided". Windows Server 2008R2 is where this is running.</p>
  
  <p>Thanks!</p>