Results 1 to 2 of 2

Thread: Getting network adapter type (VPN/Dial-up/Wireless/LAN)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    1

    Getting network adapter type (VPN/Dial-up/Wireless/LAN)

    Hi

    How can I get the network adapter type? Eg. Wireless / LAN / VPN / Dial-up

    Basically what I want to do is to automatically get the MAC addresses from the LAN and Wireless network adapters from Windows XP SP2 computers.
    My biggest problem is that a simple thing like "ipconfig /all" doesn't work since the computers don't all have English versions of Windows and then the adapter names aren't like "Local Area Network" and the "Physical Address" is something different too.

    I've already tried to get the adapter type with "Win32_NetworkAdapter" (Windows WMI scripting) and via the "GetAdaptersInfo" API call. I was able to get the MAC address in both ways. Am I just missing something here?

    Then my second problem is that sometimes the network adapters are disabled and then I can't get the MACs at all.

    Thank you in advance

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Getting network adapter type (VPN/Dial-up/Wireless/LAN)

    The MAC address is stored in the registry, search NetworkAdapter
    "The dark side clouds everything. Impossible to see the future is."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width