Solved

Enumerate Workgroups with VB6

Posted on 2006-06-16
2
279 Views
Last Modified: 2008-01-09
OK, simply put I want to enumerate the Workgroup Names in My Network Places using Visual Basic 6. Can this be done, I have been trying to figure this out, but have had no luck. ANy help would be appreciated.

Thanks,
ITRNP
0
Comment
Question by:ITRNP
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 250 total points
ID: 16922071
Private Sub Command1_Click()
Set oIADsCont = GetObject("WinNT:")
   For Each oIADsChild In oIADsCont
       Debug.Print "Domain: " & oIADsChild.Name & "  " & "ADsPath: " & oIADsChild.ADsPath & "  " & "Class: " & oIADsChild.Class

   Next oIADsChild
End Sub
0
 

Author Comment

by:ITRNP
ID: 16922568
That is exactly what I was looking for!!! Thanks, no really THANKS.

:)

ITRNP
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 56
How does CurrentUser work? 10 31
passing a value with stream reader AFTER a ";" 3 59
Access Object Property from VBA Module in Excel 2010 2 28
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now