Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: ADSI: local group or global group


Message #1 by "svdkooij" <svdkooij@c...> on Tue, 28 Aug 2001 15:14:12
Hi all.

In this piece of code I get all the groups from the "TEST" domain.
How can I check if the group is a local or a global group.

Thanx.
Sander vd Kooij




' Init ADSI
Dim IADsCont As IADsContainer
Dim Group As IADsGroup
    
' Init vars
Dim strDomain As String
Dim strThisGroup As String
    
strDomain = "TEST
Set IADsCont = GetObject("WinNT://" & strDomain)
    
' Filter on group
IADsCont.Filter = Array("group")
If (Err.Number <> 0) Then
    ' Error
End If
    
' Get Groups
cmbGlobalGroups.Clear ' Clear combobox.
For Each Group In IADsCont
   strThisGroup = Group.Name
   cmbGlobalGroups.AddItem strThisGroup
Next
        

  Return to Index