Announcement

Collapse
No announcement yet.

Registry data on Win2000 or WinXP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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...

    Comment


    • #3
      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]

      Comment

      Working...
      X