C#我们可以通过类库System.Management获取计算机的基础信息。总结了一个通用类,只要根据参考信息填入path和key就可以获取相应的信息。这个只是针对单个设备,如果有多个设备单独写下就可以了。参考信息中key的":"和后边为说明信息,只使用前面就可以了。
///
/// 获取计算机硬件信息
///
/// 部件
/// 键值
///
public static string GetComputerHardWareInfo(string path,string key)
{
try
{
ManagementClass managementClass = new ManagementClass(path);
ManagementObjectCollection moc = managementClass.GetInstances();
PropertyDataCollection properties = managementClass.Properties;
foreach (var property in properties)
{
if (property.Name == key)
{
foreach (var mo in moc)
{
return mo.Properties[property.Name].Value.ToString();
}
}
}
}
catch (Exception)
{
//记录异常信息
}
return string.Empty;
}
///
/// 获取CPU ID
///
///
public static string Get_CPU_ID() => GetComputerHardWareInfo("Win32_Processor", "ProcessorId");
///
/// 获取主板序列号
///
///
public static string Get_Board_SN() => GetComputerHardWareInfo("Win32_BaseBoard", "SerialNumber");
///
/// 获取硬盘序列号
///
///
public static string Get_Disk_SN() => GetComputerHardWareInfo("Win32_LogicalDisk", "SerialNumber");
path: Win32_ComputerSystemProduct
key:
path: Win32_Processor
key:
path:Win32_BaseBoard
key:
path: Win32_PhysicalMemory
key:
path: Win32_VideoController
key:
path: Win32_LogicalDisk
key:
path: Win32_NetworkAdapterConfiguration
key:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000000] Microsoft Kernel Debug Network Adapter
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:Microsoft Kernel Debug Network Adapter
DHCPEnabled:True
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:0
InterfaceIndex:12
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:kdnic
SettingID:{B218DEDB-FF73-45A8-B266-5D7106DA7C70}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000001] Intel(R) 82574L Gigabit Network Connection
DatabasePath:%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled:
DefaultIPGateway:System.String[]
DefaultTOS:
DefaultTTL:
Description:Intel(R) 82574L Gigabit Network Connection
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:System.String[]
DNSEnabledForWINSResolution:False
DNSHostName:WIN10-DEVE-109
DNSServerSearchOrder:System.String[]
DomainDNSRegistrationEnabled:False
ForwardBufferMemory:
FullDNSRegistrationEnabled:True
GatewayCostMetric:System.UInt16[]
IGMPLevel:
Index:1
InterfaceIndex:10
IPAddress:System.String[]
IPConnectionMetric:25
IPEnabled:True
IPFilterSecurityEnabled:False
IPPortSecurityEnabled:
IPSecPermitIPProtocols:System.String[]
IPSecPermitTCPPorts:System.String[]
IPSecPermitUDPPorts:System.String[]
IPSubnet:System.String[]
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:00:50:56:89:0D:D8
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:e1iexpress
SettingID:{9412E669-5772-4E77-8E32-8D98686A8D52}
TcpipNetbiosOptions:0
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:64512
WINSEnableLMHostsLookup:True
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000002] WAN Miniport (SSTP)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (SSTP)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:2
InterfaceIndex:2
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:RasSstp
SettingID:{0538BAF3-3380-4B19-8F44-10E81B2408CB}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000003] WAN Miniport (IKEv2)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (IKEv2)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:3
InterfaceIndex:4
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:RasAgileVpn
SettingID:{0A166E1B-CE62-41F2-A2BC-AEA10D1FCAE3}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000004] WAN Miniport (L2TP)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (L2TP)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:4
InterfaceIndex:17
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:Ras
SettingID:{F82E95C6-BB99-42EF-9D60-6B0E83963CB4}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000005] WAN Miniport (PPTP)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (PPTP)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:5
InterfaceIndex:11
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:PptpMiniport
SettingID:{A1BBFB3C-0BB5-4EAC-9171-DAA2274F1718}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000006] WAN Miniport (PPPOE)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (PPPOE)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:6
InterfaceIndex:13
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:RasPppoe
SettingID:{C0FAB81D-0C4B-4829-9B34-7FB635FD8C94}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000007] WAN Miniport (IP)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (IP)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:7
InterfaceIndex:8
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:32:19:20:52:41:53
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:NdisWan
SettingID:{7F05F3BA-FBE5-483D-9004-C5909CCCDE09}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000008] WAN Miniport (IPv6)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (IPv6)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:8
InterfaceIndex:15
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:38:40:20:52:41:53
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:NdisWan
SettingID:{E22E365A-BAED-4D2C-8C46-6AA4A2A4F1FF}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000009] WAN Miniport (Network Monitor)
DatabasePath:
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:WAN Miniport (Network Monitor)
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:
DNSEnabledForWINSResolution:
DNSHostName:
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:
ForwardBufferMemory:
FullDNSRegistrationEnabled:
GatewayCostMetric:
IGMPLevel:
Index:9
InterfaceIndex:16
IPAddress:
IPConnectionMetric:
IPEnabled:False
IPFilterSecurityEnabled:
IPPortSecurityEnabled:
IPSecPermitIPProtocols:
IPSecPermitTCPPorts:
IPSecPermitUDPPorts:
IPSubnet:
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:40:74:20:52:41:53
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:NdisWan
SettingID:{E98A6A49-B7DD-4EF7-8A1D-A7285CEDCFA2}
TcpipNetbiosOptions:
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:
WINSEnableLMHostsLookup:
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000010] VMware Virtual Ethernet Adapter for VMnet1
DatabasePath:%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:VMware Virtual Ethernet Adapter for VMnet1
DHCPEnabled:True
DHCPLeaseExpires:20240131172404.000000+480
DHCPLeaseObtained:20240131165404.000000+480
DHCPServer:192.168.6.254
DNSDomain:
DNSDomainSuffixSearchOrder:System.String[]
DNSEnabledForWINSResolution:False
DNSHostName:WIN10-DEVE-109
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:False
ForwardBufferMemory:
FullDNSRegistrationEnabled:True
GatewayCostMetric:
IGMPLevel:
Index:10
InterfaceIndex:14
IPAddress:System.String[]
IPConnectionMetric:35
IPEnabled:True
IPFilterSecurityEnabled:False
IPPortSecurityEnabled:
IPSecPermitIPProtocols:System.String[]
IPSecPermitTCPPorts:System.String[]
IPSecPermitUDPPorts:System.String[]
IPSubnet:System.String[]
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:00:50:56:C0:00:01
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:VMnetAdapter
SettingID:{C5525D50-5058-4362-B3B7-EA8C848E37A9}
TcpipNetbiosOptions:0
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:64512
WINSEnableLMHostsLookup:True
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000011] VMware Virtual Ethernet Adapter for VMnet8
DatabasePath:%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:VMware Virtual Ethernet Adapter for VMnet8
DHCPEnabled:True
DHCPLeaseExpires:20240131172404.000000+480
DHCPLeaseObtained:20240131165404.000000+480
DHCPServer:192.168.111.254
DNSDomain:
DNSDomainSuffixSearchOrder:System.String[]
DNSEnabledForWINSResolution:False
DNSHostName:WIN10-DEVE-109
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:False
ForwardBufferMemory:
FullDNSRegistrationEnabled:True
GatewayCostMetric:
IGMPLevel:
Index:11
InterfaceIndex:7
IPAddress:System.String[]
IPConnectionMetric:35
IPEnabled:True
IPFilterSecurityEnabled:False
IPPortSecurityEnabled:
IPSecPermitIPProtocols:System.String[]
IPSecPermitTCPPorts:System.String[]
IPSecPermitUDPPorts:System.String[]
IPSubnet:System.String[]
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:00:50:56:C0:00:08
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:VMnetAdapter
SettingID:{7C8E3C5A-515F-4EE0-B37C-CD4A107C42FD}
TcpipNetbiosOptions:0
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:64512
WINSEnableLMHostsLookup:True
WINSHostLookupFile:
WINSPrimaryServer:192.168.111.2
WINSScopeID:
WINSSecondaryServer:
ArpAlwaysSourceRoute:
ArpUseEtherSNAP:
Caption:[00000012] Microsoft KM-TEST 环回适配器
DatabasePath:%SystemRoot%\System32\drivers\etc
DeadGWDetectEnabled:
DefaultIPGateway:
DefaultTOS:
DefaultTTL:
Description:Microsoft KM-TEST 环回适配器
DHCPEnabled:False
DHCPLeaseExpires:
DHCPLeaseObtained:
DHCPServer:
DNSDomain:
DNSDomainSuffixSearchOrder:System.String[]
DNSEnabledForWINSResolution:False
DNSHostName:WIN10-DEVE-109
DNSServerSearchOrder:
DomainDNSRegistrationEnabled:False
ForwardBufferMemory:
FullDNSRegistrationEnabled:True
GatewayCostMetric:
IGMPLevel:
Index:12
InterfaceIndex:6
IPAddress:System.String[]
IPConnectionMetric:25
IPEnabled:True
IPFilterSecurityEnabled:False
IPPortSecurityEnabled:
IPSecPermitIPProtocols:System.String[]
IPSecPermitTCPPorts:System.String[]
IPSecPermitUDPPorts:System.String[]
IPSubnet:System.String[]
IPUseZeroBroadcast:
IPXAddress:
IPXEnabled:
IPXFrameType:
IPXMediaType:
IPXNetworkNumber:
IPXVirtualNetNumber:
KeepAliveInterval:
KeepAliveTime:
MACAddress:02:00:4C:4F:4F:50
MTU:
NumForwardPackets:
PMTUBHDetectEnabled:
PMTUDiscoveryEnabled:
ServiceName:kmloop
SettingID:{70CFC505-B5F4-4C3F-8E92-E03AD40316AD}
TcpipNetbiosOptions:0
TcpMaxConnectRetransmissions:
TcpMaxDataRetransmissions:
TcpNumConnections:
TcpUseRFC1122UrgentPointer:
TcpWindowSize:64512
WINSEnableLMHostsLookup:True
WINSHostLookupFile:
WINSPrimaryServer:
WINSScopeID:
WINSSecondaryServer:
参考文章:https://www.cnblogs.com/dongweian/p/14182576.html