title: List Members of multible AD Groups with more than 5000 Users
body: <p>How could I get a List of Members on multible AD Groups with more than 5000 Users 
  Example:
  Group1 = includes 6000 Members and Group2
  Group2 = includes 7000 Members</p>
  
  <p>the result of the get-adgroupmember of Group1 should 13000</p>
  
  <p>how can I do that? Here I have the Problem, that it will not look in sub groups recursive will not work with get-adgroup</p>
  
  <pre><code>$group = "group1"
  $ADInfo = Get-ADGroup -Identity $Group -Properties Members 
  $outputfile = $group
  $ADInfo.Members | get-aduser | Select name, enabled, UserPrincipalName, SamAccountName  
  
  #$ADInfo.Members | get-aduser | Select name, enabled, UserPrincipalName, SamAccountName  | Export-Csv c:\temp\$outputfile-member.csv -Delimiter "," -NoTypeInformation
  
  # to show output
  $members = @()
  $members = $ADInfo.members
  $members.count
  </code></pre>