Does anybody know of a way of detecting machines on a network and
retrieving their names and ip addresses?
Any help would be appreciated!
Thanks in advance,
AJB
The directorysearcher class can retrieve the computer names from an
active directory. Add a reference to system.directoryservices.dll.
Dim de As New System.DirectoryServices.DirectoryEntry("LDAP://domain name")
Dim ds As New System.DirectoryServices.DirectorySearcher(de)
Dim r As System.DirectoryServices.SearchResult
ds.Filter = "(objectClass=computer)"
Try
For Each r In ds.FindAll
Dim s As String
Console.WriteLine(r.GetDirectoryEntry.Name.ToString)
Next
Catch e As Exception
Console.WriteLine(e.ToString)
End Try
Ken
--------
"a" <a...@a.com> wrote in message
news:5athbvse3ru573m5i...@4ax.com...
Thanks in advance,
AJB
On Wed, 7 May 2003 11:30:40 -0400, "Ken Tucker" <vb...@bellsouth.net>
wrote:
--
www.winmgmt.com
Gu...@WinMgmt.com
"a" <a...@a.com> wrote in message
news:eegibvoqr3pl69i16...@4ax.com...
see reply to a message posted under subject
Re: find all servers of a local network