title: Can't get New-ADUser result out from Powershell
body: <p>I am looking for a way to redirect the result from New-ADUser to a file</p>
  
  <p>Thats what i have tested: Run twice the following script</p>
  
  <blockquote>
    <p>New-ADUser -Name User64 | Out-File C:\Temp\test.txt</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>New-ADUser -Name User64 2>&amp;1 >> C:\Temp\test.txt</p>
  </blockquote>
  
  <p>But none of this work, these just output an empty file and show the error in the Powershell </p>
  
  <blockquote>
    <p>New-ADUser : The specified account already exists
    At line:1 char:11</p>
  </blockquote>
  
  <p>rather than output in the test.txt file.</p>
  
  <p>Any idea for this?</p>
  
  <p>Thanks,
  Derek</p>