Retrieve the users from the network

Hai Friends!
Howz the day? I would like to retrieve the computer-name (user-name)from the network area (Windows 2000 Server),any idea! Just ponder in about your suggestions,snippets,peice-of-code from your side.
Thanx in advance.
Cheers
SATHISH KUMAR G
[291 byte] By [sathishgforum] at [2007-11-18 10:00:31]
# 1 Re: Retrieve the users from the network
here's an example of getting the network users ( make a reference to Active DS )

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim domain As Object = GetObject("WinNT://DENNIS")
Dim o As ActiveDs.IADs
For Each o In domain
If o.Class = "User" Then
MessageBox.Show(o.Name)
End If
Next
End Sub

hope it helps you to get started off.
dynamic_sysop at 2007-11-10 3:23:44 >