title: Powershell active directory properties
body: <p>I am trying to find the properties of active directory:</p>
  
  <pre><code>$strFilter = "(&amp;(objectCategory=User))"
  
  $objDomain = New-Object System.DirectoryServices.DirectoryEntry
  
  $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
  $objSearcher.SearchRoot = $objDomain
  $objSearcher.PageSize = 1000
  $objSearcher.Filter = $strFilter
  $objSearcher.SearchScope = "Subtree"
  
  $colResults = $objSearcher.FindAll() 
  
  foreach ($objResult in $colResults){   
      $objItem = $objResult.Properties
  </code></pre>
  
  <p>I can call $objitem.name, but I don't know which other properties I have accessible.</p>
  
  <p>How can I find which properties I can access from $objitem? </p>
  
  <p>edit:</p>
  
  <p>Used this solution using the answers below:</p>
  
  <pre><code>foreach ($objResult in $colResults){   
     ($colResults)[0].Properties.PropertyNames
  }
  </code></pre>