System Info
-
I am trying to get some detailed information about a user's computer, but I am having trouble finding any info for VB.Net. What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer. I have pretty much come to the conclusion that this cannot be done with .Net, but with the Win32 API instead. Which would be best? Also, I found a registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall
that holds info about a pc's hardware. Is this key a standard source for hardware? Or is there a better way to get this info? Thanks for the help!
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
-
I am trying to get some detailed information about a user's computer, but I am having trouble finding any info for VB.Net. What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer. I have pretty much come to the conclusion that this cannot be done with .Net, but with the Win32 API instead. Which would be best? Also, I found a registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall
that holds info about a pc's hardware. Is this key a standard source for hardware? Or is there a better way to get this info? Thanks for the help!
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
MatrixCoder wrote:
What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer
Does this registry key exist on your computer: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters Have a look through this key and it has most of the info you require. If you can't find this key then: Search the registry for your IP Address and it will eventually find the info you require. Have you searched MSDN? Hope this helps:)
My blog:[^]
-
I am trying to get some detailed information about a user's computer, but I am having trouble finding any info for VB.Net. What I'm trying to find is the Static IP Address, Subnet Mask and Mac Address of a computer. I have pretty much come to the conclusion that this cannot be done with .Net, but with the Win32 API instead. Which would be best? Also, I found a registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall
that holds info about a pc's hardware. Is this key a standard source for hardware? Or is there a better way to get this info? Thanks for the help!
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
It can be done in VB.NET. All you need to do is use the classes in the System.Management namespace and the Win32_NetworkAdapterConfiguration WMI class. Docs on the Win32_NetworkAdapterConfiguration[^] class. I think you'll be a bit surprised about how many adapters are really there and that a single adapter can have multiple IP addresses.
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
It can be done in VB.NET. All you need to do is use the classes in the System.Management namespace and the Win32_NetworkAdapterConfiguration WMI class. Docs on the Win32_NetworkAdapterConfiguration[^] class. I think you'll be a bit surprised about how many adapters are really there and that a single adapter can have multiple IP addresses.
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Thanks Dave, this is just what I needed!
Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.