Thanks
I've not tried it yet, but have one more question.
What if i run the program on a computer that is not the
dhcp server?
I won't be able to try this till monday now, but just
wondered.
The computer running the program will be logged onto the
domain (server it winnt 4, client is win2000 pro)
Thanks again.
Quote:
>-----Original Message-----
>I can think of about three but I'll keep it to one. Add
a reference to
>Windows Management.
> Private Sub Form1_Load(ByVal sender As
System.Object, ByVal e As
Quote:
>System.EventArgs) Handles MyBase.Load
> 'this is entirely new syntax for wmi
> 'instead of having to dim a locator and services
object, we call the
>managementobjectsearcher
> 'totally cool
>Dim mos As System.Management.ManagementObjectSearcher
>Dim moc As System.Management.ManagementObjectCollection
>Dim mo As System.Management.ManagementObject
>Dim prop As System.Management.PropertyData
>Dim FSO As Object
>Dim txtstream As Object
>Dim MyString As String
>mos = New System.Management.ManagementObjectSearcher
("SELECT * FROM
>Win32_NetworkAdapterConfiguration Where Index = 0")
>moc = mos.Get()
>For Each mo In moc
>MessageBox.Show(mo.GetText(Management.TextFormat.Mof))
>Next
>HTH
message
>> Is there a way of accessin the dhcp info in vb.net.
>> i want to get which computer has been assigned which ip
>> address.
>> Can this be done?
>> Thanks
>> Roland
>.