ネットワークアダプタのIPやDNSの情報を参照
ネットワークアダプタのIPやDNSの情報を参照
サンプルソース
(入力)
wmic nicconfig list full
(出力)
ArpAlwaysSourceRoute=
ArpUseEtherSNAP=
DeadGWDetectEnabled=
DefaultIPGateway={"192.168.1.4"}
DefaultTOS=
DefaultTTL=
Description=Microsoft Hyper-V Network Adapter #3
DHCPEnabled=FALSE
DHCPLeaseExpires=
DHCPLeaseObtained=
DHCPServer=
DNSDomain=
DNSDomainSuffixSearchOrder={}
DNSEnabledForWINSResolution=FALSE
DNSHostName=HOSTCOM
DNSServerSearchOrder={"192.168.1.2","192.168.1.3"}
DomainDNSRegistrationEnabled=FALSE
ForwardBufferMemory=
FullDNSRegistrationEnabled=FALSE
GatewayCostMetric={256}
IGMPLevel=
Index=1
IPAddress={"192.168.1.5","fe80::ed06:214:2114:dae8"}
IPConnectionMetric=15
IPEnabled=TRUE
IPFilterSecurityEnabled=FALSE
IPPortSecurityEnabled=
IPSecPermitIPProtocols={}
IPSecPermitTCPPorts={}
IPSecPermitUDPPorts={}
IPSubnet={"255.255.255.0","64"}
IPUseZeroBroadcast=
IPXAddress=
IPXEnabled=
IPXFrameType=
IPXMediaType=
IPXNetworkNumber=
IPXVirtualNetNumber=
KeepAliveInterval=
KeepAliveTime=
MACAddress=00:15:5D:10:59:0D
MTU=
NumForwardPackets=
PMTUBHDetectEnabled=
PMTUDiscoveryEnabled=
ServiceName=netvsc
SettingID={CC0DB0B9-3352-46AB-9927-6B08D134E2B4}
TcpipNetbiosOptions=0
TcpMaxConnectRetransmissions=
TcpMaxDataRetransmissions=
TcpNumConnections=
TcpUseRFC1122UrgentPointer=
TcpWindowSize=
WINSEnableLMHostsLookup=TRUE
WINSHostLookupFile=
WINSPrimaryServer=
WINSScopeID=
WINSSecondaryServer=