title: Getting AD users having a specific keyword within description field in AD
body: <p>I want to get all of those users starting with a specific keywords in AD User Description field using PowerShell.
  Keyword: Could not execute powershell</p>
  
  <pre><code>Import-Module ActiveDirectory
  
  Get-ADUser -Filter * -SearchBase 'OU=contoso, DC=contoso, DC=local' - Properties Description | select -expand name,distinguishedname,description  | Export-Csv -path C:\description.csv -NoTypeInformation
  </code></pre>
  
  <p>Last Update :</p>
  
  <pre><code> Get-ADUser -Properties Description -Filter 'Description -like "*Could not  execute powershell*"' -SearchBase 'OU=contoso, DC=contoso, DC=local' | 
  select name,distinguishedname,description  | 
  Export-Csv -path C:\description2.csv -NoTypeInformation
  </code></pre>