Discussion:
Get IP address from cable disconnected adapter
(too old to reply)
Petr Laznovsky
2012-04-06 19:01:54 UTC
Permalink
I am trying to get IP addresses assigned to ehternet adapter with
curretly unplugged cable, but I have no luck.

Using property IPAddress of Win32_NetworkAdapterConfiguration class work
fine if cable is connected, but return empty field if cable is disconnected.

Is there any other way to get IP address from unplugged card?

L.
DavePerry
2012-04-17 12:06:29 UTC
Permalink
Hi Petr,

Did you get anywhere with this? I have exactly the same problem, and
am hunting for a solution.

Cheers,

David
Post by Petr Laznovsky
I am trying to get IP addresses assigned to ehternet adapter with
curretly unplugged cable, but I have no luck.
Using property IPAddress of Win32_NetworkAdapterConfiguration class work
fine if cable is connected, but return empty field if cable is disconnected.
Is there any other way to get IP address from unplugged card?
L.
DavePerry
2012-04-17 12:23:35 UTC
Permalink
Whenever the network cable is unplugged, in Win Control PAnel ->
Windows Network Adapter IPv4 properties, you can still see the static
IP settings, even Win32_NetworkAdapterConfiguration will return blank
values.... so the data has to be somewhere....
d***@gmail.com
2014-01-27 19:04:08 UTC
Permalink
Any luck with this? I'm having this issue on Windows 7 and have been unable to solve it thus far.
g***@gmail.com
2014-07-28 14:09:28 UTC
Permalink
I would check following registry:

HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\<GUID>

where GUID is:
- GUID from Win32_NetworkAdapter,
- or SettingsID from Win32_NetworkAdapterConfiguration

For static IP check the IPAddress value
For automatic IP check the DhcpIPAddress value

Loading...