wmic列表网络连接信息
(2020-12-28 00:26:45)分类: 运维 |
列表网络连接名
wmic nic where "NetConnectionID > ''" get
NetConnectionID,Manufacturer,PNPDeviceID
ipconfig /all | find "DNS 服务器"
wmic Path Win32_NetworkAdapterConfiguration where
"IPEnabled='True'" get DefaultIPGateway /value
wmic Path Win32_NetworkAdapterConfiguration where
"IPEnabled='FALSE'" get DefaultIPGateway /value
wmic Path Win32_NetworkAdapterConfiguration where
"IPEnabled='True'" get DNSServerSearchOrder /value
wmic Path Win32_NetworkAdapterConfiguration where
"Description"
Description
DNSServerSearchOrder={"192.168.1.1"}
DNSServerSearchOrder={"223.5.5.5","114.114.114.114"}
win10
wmic Path Win32_NetworkAdapterConfiguration where
"Description='Intel(R) Dual Band Wireless-AC 3165'" get
MACAddress,IPSubnet,IPEnabled,IPAddress,DefaultIPGateway,DNSServerSearchOrder
/value
DefaultIPGateway={"192.168.1.1"}
DNSServerSearchOrder={"61.128.128.68","223.5.5.5"}
IPAddress={"192.168.1.3"}
IPEnabled=TRUE
IPSubnet={"255.255.255.0"}
MACAddress=AC:2B:6E:2F:A5:67
wmic Path Win32_NetworkAdapterConfiguration where
"Description='Intel(R) Dual Band Wireless-AC
3165'" get /value
ArpAlwaysSourceRoute=
ArpUseEtherSNAP=
Caption=[00000001] Intel(R) Dual Band Wireless-AC 3165
DatabasePath=%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled=
DefaultIPGateway={"192.168.1.1"}
DefaultTOS=
DefaultTTL=64
Description=Intel(R) Dual Band Wireless-AC 3165
DHCPEnabled=TRUE
DHCPLeaseExpires=20201229003522.000000+480
DHCPLeaseObtained=20201228003522.000000+480
DHCPServer=192.168.1.1
DNSDomain=
DNSDomainSuffixSearchOrder={}
DNSEnabledForWINSResolution=FALSE
DNSHostName=cnyunfei
DNSServerSearchOrder={"61.128.128.68","223.5.5.5"}
DomainDNSRegistrationEnabled=FALSE
ForwardBufferMemory=
FullDNSRegistrationEnabled=TRUE
GatewayCostMetric={0}
IGMPLevel=
Index=1
InterfaceIndex=19
IPAddress={"192.168.1.3"}
IPConnectionMetric=55
IPEnabled=TRUE
IPFilterSecurityEnabled=FALSE
IPPortSecurityEnabled=
IPSecPermitIPProtocols={}
IPSecPermitTCPPorts={}
IPSecPermitUDPPorts={}
IPSubnet={"255.255.255.0"}
IPUseZeroBroadcast=
IPXAddress=
IPXEnabled=
IPXFrameType=
IPXMediaType=
IPXNetworkNumber=
IPXVirtualNetNumber=
KeepAliveInterval=
KeepAliveTime=
MACAddress=AC:2B:6E:2F:A5:67
MTU=
NumForwardPackets=
PMTUBHDetectEnabled=TRUE
PMTUDiscoveryEnabled=TRUE
ServiceName=Netwtw04
SettingID={F2FD08B4-1577-4F58-B07D-0A1EC3CA2A7B}
TcpipNetbiosOptions=0
TcpMaxConnectRetransmissions=
TcpMaxDataRetransmissions=
TcpNumConnections=
TcpUseRFC1122UrgentPointer=
TcpWindowSize=
WINSEnableLMHostsLookup=TRUE
WINSHostLookupFile=
WINSPrimaryServer=
WINSScopeID=
WINSSecondaryServer=
win7
wmic Path Win32_NetworkAdapterConfiguration where
"Description='Realtek PCIe GBE Family Controller'" get
MACAddress,IPSubnet,IPEnabled,IPAddress,DefaultIPGateway,DNSServerSearchOrder
/value
DefaultIPGateway={"192.168.0.1"}
DNSServerSearchOrder={"127.0.0.1","223.5.5.5","61.128.128.68"}
IPAddress={"192.168.0.68","fe80::88f6:3733:20ac:f62d"}
IPEnabled=TRUE
IPSubnet={"255.255.255.0","64"}
MACAddress=34:64:A9:33:AA:B0
wmic Path Win32_NetworkAdapterConfiguration where
"Description='Realtek PCIe GBE Family
Controller'" get /value
ArpAlwaysSourceRoute=
ArpUseEtherSNAP=
Caption=[00000007] Realtek PCIe GBE Family Controller
DatabasePath=%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled=
DefaultIPGateway={"192.168.0.1"}
DefaultTOS=
DefaultTTL=64
Description=Realtek PCIe GBE Family Controller
DHCPEnabled=FALSE
DHCPLeaseExpires=
DHCPLeaseObtained=
DHCPServer=
DNSDomain=
DNSDomainSuffixSearchOrder={}
DNSEnabledForWINSResolution=FALSE
DNSHostName=worj
DNSServerSearchOrder={"223.5.5.5","61.128.128.68"}
DomainDNSRegistrationEnabled=FALSE
ForwardBufferMemory=
FullDNSRegistrationEnabled=TRUE
GatewayCostMetric={1}
IGMPLevel=
Index=7
InterfaceIndex=11
IPAddress={"192.168.0.68","fe80::88f6:3733:20ac:f62d"}
IPConnectionMetric=20
IPEnabled=TRUE
IPFilterSecurityEnabled=TRUE
IPPortSecurityEnabled=
IPSecPermitIPProtocols={}
IPSecPermitTCPPorts={}
IPSecPermitUDPPorts={}
IPSubnet={"255.255.255.0","64"}
IPUseZeroBroadcast=
IPXAddress=
IPXEnabled=
IPXFrameType=
IPXMediaType=
IPXNetworkNumber=
IPXVirtualNetNumber=
KeepAliveInterval=
KeepAliveTime=
MACAddress=34:64:A9:33:AA:B0
MTU=
NumForwardPackets=
PMTUBHDetectEnabled=TRUE
PMTUDiscoveryEnabled=TRUE
ServiceName=RTL8167
SettingID={319C6292-FE8B-4AA1-BE09-AF5162109D07}
TcpipNetbiosOptions=1
TcpMaxConnectRetransmissions=
TcpMaxDataRetransmissions=
TcpNumConnections=
TcpUseRFC1122UrgentPointer=
TcpWindowSize=60352
WINSEnableLMHostsLookup=FALSE
WINSHostLookupFile=
WINSPrimaryServer=
WINSScopeID=
WINSSecondaryServer=