Enumerate Workgroups AND Domains 
Author Message
 Enumerate Workgroups AND Domains

Is there a way to enumerate a workgroup AND a domain, and
using a TreeView, add those nodes to the tree.  For example:

        ParentNode1 = tvlFirstView.Nodes.Add(HRWorkgroup)
        With ParentNode1
            .Nodes.Add(PC1)
            .Nodes.Add(PC2)
            .Nodes.Add(SERVER1)
            .Nodes.Add(PC3)
            .Expand()
        End With
        ParentNode2 = tvlSecondView.Nodes.Add(ENGWorkgroup)
        With ParentNode2
            .Nodes.Add(SERVER1)
            .Nodes.Add(SERVER2)
            .Expand()
        End With
        ParentNode3 = tvlThirdView.Nodes.Add(PrimDomain)
        With ParentNode1
            .Nodes.Add(PC1)
            .Nodes.Add(PC2)
            .Nodes.Add(SERVER1)
            .Nodes.Add(PC3)
            .Expand()
        End With

Thanks much
Joseph



Sun, 10 Jul 2005 00:07:55 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. sample code for enumerating domains and workgroups?

2. domain pruefen domain provider es domain registrieren domain angebot no domain

3. Listing domain and workgroup PC nodes available

4. Domain-name and/or Workgroup info

5. Computers in workgroup/domain/subnet

6. retrieving computername and domains/workgroups

7. API calls for retrieving all the Workgroup/Domain/Computer names on the network

8. Get workgroup or domain name

9. Get workgroup or domain name

10. Get workgroup or domain name

11. Domain vs. Workgroup

12. Workgroup or domain

 

 
Powered by phpBB® Forum Software