title: Cannot copy item using mapped drive in Scheduler
body: <p>I have a simple PowerShell script that copies a file from a mapped network drive, if it's modified in past 1 day.</p>
  
  <pre><code>$source = "Z:\\"
  $target = "E:\target"
  $files = get-childitem $source
  
  foreach ($file in $files) {
    if($file.LastWriteTime -ge (get-date).AddDays(-1)) {
       Copy-Item $file.FullName $target
    }
  }
  </code></pre>
  
  <p>This script runs fine if I manually execute it.</p>
  
  <p>If  I try to use a scheduled task, the copy does not run. I confirmed the script is running by having it make a directory.</p>
  
  <p>If I instead copy from a local drive instead of a network drive, the script runs fine with a scheduled task.</p>
  
  <p>Schedule Task is running as an Admin Account.</p>
  
  <p>Script copying file from network drive runs fine manually but not via scheduled task. Script runs fine as task if copying from local but not network drive. </p>
  
  <p>Any ideas?</p>