title: How do I loop through a CSV file with a batch or PowerShell script?
body: <p>I have a CSV file with two different columns, one with PC names and one with MAC addresses like this:</p>
  
  <pre><code>PCxxxx 00-11-22-33-44-55
  ...
  ...
  </code></pre>
  
  <p>These values should be placed into the following CLI command:</p>
  
  <pre><code>wdsutil /Set-Device /Device:PCxxxx /ID:00-11-22-33-44-55
  </code></pre>
  
  <p>Now since there are about 200 of them, I want to automate this.</p>
  
  <p>As a matter of interest, could one do this with batch? It would be quite complicated, right? I thought of arrays, but don't think one can do this in batch.</p>
  
  <p>Maybe with PowerShell it'd be a bit easier.</p>