title: ActiveDs.IADsMembers - Enumerate Global Groups which contain a Foreign Security Principal
body: <p>I am enumerating a Domain Local Group in Active Directory using:</p>
  
  <pre><code>Dim de As New DirectoryEntry("path")
  Dim members As IADsMembers = DirectCast(de.Invoke("Members"), IADsMembers)
  
  members.Filter = New Object() {"user"}
  'Iterate over users.
  members.Filter = New Object() {"group"}
  'Iterate over nested groups.
  </code></pre>
  
  <p>The Domain Local Group is not enumerating. I have checked <code>members.Count</code> which equals 1.</p>
  
  <p>Having looked in Active Directory there is a Foreign Security Principal which links to a Global Group in another domain. Research suggests that the only options for <code>members.Filter</code> are <code>user and group</code>, <code>user</code> and <code>group</code>.</p>
  
  <p>How can I extract the Foreign Security Principal from this collection?</p>