Hi after a bit of searching I found this sample on the newsgroup which does
what you want:
Add reference to System.Dirtecto ryServices
Imports System.Director yServices
Dim de As DirectoryEntry
Dim Child As DirectoryEntry
de = New DirectoryEntry( "WinNT://" & Environment.Mac hineName & ",computer" )
'Filter for only "User" entries.
de.Children.Sch emaFilter.Add(" user")
Console.WriteLi ne("USERS:")
For Each Child In de.Children
Console.WriteLi ne(" - " & Child.Name)
Next Child
Hope this helps
Greetz, Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)
"Dave" <da*******@gmai l.com> schreef in bericht
news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Hi all,
My question is: How do you obtain a complete list of all the users
that are registered on the local machine? I've been trying for hours
now and can't find anything that will help on the groups.
Anyone have any idea how to do this in VB.NET?
thanks
Dave