title: How to copy file from network path to local appdata for each remote PC
body: <p>So i have a file with PC's and their respective users in a CSV called <code>test.csv</code>; the file looks like this:</p>
  <blockquote>
  <pre><code>Computer, User
  pcname1, john.doe
  pcname2, jane.doe
  </code></pre>
  </blockquote>
  <p>My script looks like this</p>
  <pre><code>$list = Import-Csv -Path C:\temp\test.csv
  
  ForEach ($Computer in $list) {
  
  
  Copy-Item -Path \\domain.local\SYSVOL\domain.local\scripts\copyfile.txt -Destination \\$list.Computer\C$\Users\$list.User\AppData\Local\filedepot\
  
  }
  </code></pre>
  <p>The <code>Copy-Item</code> works if i manually enter the PC name and username in the variables.</p>
  <p>But as soon as i use the <code>$list</code>. it doesn't work..</p>
  <p>If i use <code>echo</code> it does show me the correct data so it does pick up the right info..</p>
  <p>Not sure why this doesn't work, any help is appreciated</p>