Re: Multiple NICS and recording IP addresses



that only works for statis IP addresses; I need this to work for DHCP
addresses

I am trying to enumerate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
and pull it out of the subkeys but am having trouble.


"Martin CLAVREUIL" <martin-DROPTHIS-.clavreuil@xxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:OTSxjPjNFHA.568@xxxxxxxxxxxxxxxxxxxxxxx
> here is the description of the wmi class where you can find adapters and
> ips associated :
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_networkadapterconfiguration.asp
>
>
> "David Doumani" <ddoumani@xxxxxxxxxxxxxx> a écrit dans le message de news:
> %23wLVT%23hNFHA.3728@xxxxxxxxxxxxxxxxxxxxxxx
>>I want to generate this same result as part of a overall VBSCRIPT but do
>>not want to reply on GREP; I have tried several routines but they all
>>stop at the first NIC; can someone give me a hint on how to get this for
>>all NICS as below without relying on grep?
>>
>> C:\Documents and Settings\DDoumani\My Documents\_Perot Systems\_Wolters
>> Kluwer\Documents\WK Scripts>ipconfig | grep -i "IP Add"
>> IP Address. . . . . . . . . . . . : 192.168.15.102
>> IP Address. . . . . . . . . . . . : 192.168.15.104
>> IP Address. . . . . . . . . . . . : 10.138.120.22
>>
>
>


.



Relevant Pages