title: How do I find a specific string in the Description field on Computer Objects in AD?
body: <p>Currently the description field for computer objects is in use in Active Directory with Name of user,type of computer and date put in service. I have a powershell script to identify computer objects that are both 30 days and 44 days old that appends the label "More than 30 Days Old" and "More than 44 Days Old" to the description. Everytime I run the script I want to check to see if that label has already been appended to the objects whom meet the 30 and 44 day inactive criteria. How do I search the Description properties for the labels I have already appended to them...so the inactive labels I set don't apply every time the script runs?</p>
  
  <p>Currently this is how I am appending the inactive label for Inactive over 30 Days:</p>
  
  <pre><code>Get-ADComputer -Filter {LastLogonTimeStamp -lt $time} -Properties Description | ForEach-Object {Set-ADComputer $_ -Description "$($_.Description) More than 30 Days Old" }
  </code></pre>
  
  <p>I would love to be able to check to see if the label already exists before attempting to append again.</p>