title: Get-ADComputer and MemberOf
body: <p>I am very new to Powershell and am having an issue when using the <code>Get-ADUser</code> and <code>GetADComputer</code> cmdlets.</p>
  
  <p>I am trying to use the <code>Get-ADComputer</code> and <code>Get-ADUser</code> to retrieve the <code>memberOf</code> from Active-Directory of all the users and computers. It only appears to be retrieving information from users and computers that are in 2 or more groups. Any users/computers that are only in 1 group display nothing.</p>
  
  <p>For example: If UserA is in group Administrators I get no output when I use MemberOf. But if User2 is in both Administrators and Domains Administrators I get some output. However it will only output one of those groups.</p>
  
  <p>Get-ADGroup does the same thing.</p>
  
  <p>Is this normal? I can't imagine it is.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Get-ADUser -Filter * -Properties * | Select-Object -Property Name,MemberOf | Sort-Object -Property Name
  </code></pre>
  
  <p>Thanks</p>