
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