WIN32_NetworkAdapterConfiguration does not report IP from PPP adapter

Posted by Michael on Super User See other posts from Super User or by Michael
Published on 2011-04-27T15:42:40Z Indexed on 2012/09/20 3:41 UTC
Read the original article Hit count: 403

Filed under:
|
|

On a Windows 7 device, the following WMI query does not report back an enabled PPP adapter:

Select Index,MACAddress,IPAddress,IPSubnet,DefaultIPGateway,DNSServerSearchOrder from Win32_NetworkAdapterConfiguration where IPEnabled=true

Where ipconfig gives you all the information correctly:

Windows IP Configuration

PPP adapter XYZ VPN:

Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 123.456.789.123
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 192.168.178.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.178.1

Ethernet adapter Local Area Connection 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Any ideas how I can script this by using WMI or VBS?

© Super User or respective owner

Related posts about windows-7

Related posts about wmi