Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. System Info

System Info

Scheduled Pinned Locked Moved Visual Basic
csharpwindows-adminhardwarejson
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MatrixCoder
    wrote on last edited by
    #1

    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.

    A D 2 Replies Last reply
    0
    • M MatrixCoder

      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.

      A Offline
      A Offline
      A
      wrote on last edited by
      #2

      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:[^]

      1 Reply Last reply
      0
      • M MatrixCoder

        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.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • D Dave Kreskowiak

          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

          M Offline
          M Offline
          MatrixCoder
          wrote on last edited by
          #4

          Thanks Dave, this is just what I needed!


          Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups