title: Why does powershell not accept my hand edited CSV
body: <p>Everything in my Powershell script works as intended, however if I take an exported CSV and remove several rows and colums from it that are not necessary in the script, it will tell me the fields I left untouched are null.</p>
  
  <p>Here is the script I am running, it only needs 2 fields, DistinguishedName and SamAccountName.</p>
  
  <pre><code>ipcsv C:\Users\####\####\EditedCSV.csv | select-object DistinguishedName,SamAccountName | ForEach{
  Rename-adobject $_.DistinguishedName -NewName $_.SamAccountName -WhatIf -Confirm:$false
  }
  </code></pre>
  
  <p>I start with:</p>
  
  <pre><code>SamAccountName C GID DestinguishedName WhenCreated Description CN
  </code></pre>
  
  <p>And change it to:</p>
  
  <pre><code>SamAccountName DestinguishedName
  </code></pre>
  
  <p>does it not accept a csv that people have messed with, or is there some special trick I'm supposed to do when modifying data myself?</p>