title: Powershell AD computer description append
body: <p>I was wondering if some of powershell magicians here could advise on this please. 
  I have script that diables computers from list and wanted to append description of that computer with date. </p>
  
  <pre><code>$TimeStamp = ((get-date).toshortdatestring())
  $pclist = Get-Content C:\.Data\raports\test.txt
  Foreach($pc in $Pclist)
  {
  Get-ADComputer -Identity "$pc" -Properties description |Set-ADComputer -Enabled $false -Description "$timestamp,"
  } 
  </code></pre>
  
  <p>I have tried to use </p>
  
  <p><code>-Description "$timestamp, $($_.description)"</code></p>
  
  <p>or</p>
  
  <pre><code>-Description "$timestamp, $($pc.description)"
  </code></pre>
  
  <p>but that only puts  the time stamp. 
  Ideally I want to catch whatever was there before and update in frormat of date, old description</p>
  
  <p>Many thansk for your adivce </p>