Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2001
    Location
    La Crosse, WI, USA
    Posts
    11

    Grin Registry data on Win2000 or WinXP

    How do I get the registry data (put into 2 distinct variables) from a Win2000 or WinXP workstation that tells me the Network Adapter and IP Address of the workstation, if they exist? It's located at HKEY_LOCAL_MACHINE\system\currentcontrolset\servic es\tcpip\parameters\interfaces\(Network Adapter)\(IP Address)

  2. #2
    Join Date
    Nov 2002
    Posts
    33

    Re: Registry data on Win2000 or WinXP

    You could read the values from the Linkage\Bind key. Which I think is the bind order. Anyway strip that down to the GUID and put it in a variable. Under Parameters\Interfaces\GUID what you are looking for. Since you have the adapter GUID in a variable you can then go get the MAC whereever that is stored.

    For example my Linkage\Bind values are:

    \Device\{248B0D97-1E3F-432E-BCE4-8B18469E0EE5}
    \Device\{F9BDA1FF-5257-48F5-B993-0746D5BA3115}
    \Device\NdisWanIp

    Strip off the \Device\ and you have a way to address the NIC in the registry...

  3. #3
    Join Date
    Nov 2002
    Posts
    10

    Re: Registry data on Win2000 or WinXP

    %LANIP%
    %LANNIC%

    Just use those. It will auto magically get those [img]/ubbthreads/images/icons/smile.gif[/img]

Posting Permissions

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