title: PowerShell Copy on a mapped or UNC Drive (SQL Server Job Agent)
body: <p>What am I doing wrong?</p>
  
  <p>As a step in a Job I am trying to overwrite file by copying the drive is mapped, but I am using unc path just in case.</p>
  
  <p>In PowerShell this works in the command line interface.</p>
  
  <blockquote>
    <p>Copy \V240\folder\foo.txt \V240\folder\bar.txt</p>
  </blockquote>
  
  <p><a href="http://i.stack.imgur.com/V4qOW.png" rel="nofollow">1</a></p>
  
  <p>When I put it in a Job Agent in SQL Server with the PowerShell option it says successfully completed but the file has not been copied. </p>