[借过]问个事情

[问题描述]

下面是在我的本本上面截下来的NetworkAdapter的信息(此时,所有网络连接均disable,除了vmware的虚拟网卡vmnet1、vmnet8),现在的问题是想要从中选出网卡(在本例中为1、4、13、14)而排除其他,具体选择下面哪个信息或者使用其他更好的方式进行识别。

[初步设想]

下面为我倾向的字段:
SettingID:编号应该有所区别,不过不懂:(
NetConnectionStatus:从本例中似乎最为合适,不为Null的刚好就是我想选定的网卡。
PNPDeviceID:PCI的似乎就满足要求了(vmware 的就不管了,肯定要单独讨论,要不就弄乱了,呵呵),不过不知集成在主板上面的网卡此项为什么,我不知我本本的网卡是否算集成在主板上:(

但以上方式怎么看都不规范,说不定会有误识别的发生,不知正规的识别方式为什么,才能保证无误!知道的赐教哦!不胜感激!

1:
Caption:[00000001] Intel(R) PRO/100 VE Network Connection
Description:Intel(R) PRO/100 VE Network Connection
IPEnabled:False
ServiceName:E100B
SettingID:{50879C82-B876-444B-B041-FC34E733D43E}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:22
ConfigManagerUserConfig:False
Manufacturer:Intel
Name:Intel(R) PRO/100 VE Network Connection
NetConnectionStatus:0
PermanentAddress:
Status:
StatusInfo:
ProductName:Intel(R) PRO/100 VE Network Connection
PNPDeviceID:PCIVEN_8086&DEV_103D&SUBSYS_05221014&REV_814&39A85202&0&40F0

2:
Caption:[00000002] 数据包计划程序微型端口
Description:数据包计划程序微型端口
IPEnabled:False
ServiceName:
SettingID:{33165690-0E0C-4A97-844F-F99948C887C2}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:数据包计划程序微型端口
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:数据包计划程序微型端口
PNPDeviceID:ROOTMS_PSCHEDMP000

3:
Caption:[00000003] RAS 同步适配器
Description:RAS 同步适配器
IPEnabled:False
ServiceName:AsyncMac
SettingID:{C344A14C-B778-44CC-8D27-8D09E6F93B80}
MACAddress:20:41:53:59:4E:FF
IPAddress:
AdapterType:广域网 (WAN)
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:RAS 同步适配器
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:RAS 同步适配器
PNPDeviceID:SW{EEAB7790-C514-11D1-B42B-00805FC1270E}ASYNCMAC

4:
Caption:[00000004] Intel(R) PRO/Wireless 2200BG Network Connection
Description:Intel(R) PRO/Wireless 2200BG Network Connection
IPEnabled:False
ServiceName:w22n51
SettingID:{325943AD-237B-43FA-BB2F-5BD3A09D79FD}
MACAddress:
IPAddress:
AdapterType:
Availability:3
Connection
ConfigManagerErrorCode:22
ConfigManagerUserConfig:False
Manufacturer:Intel(R) Corporation
Name:Intel(R) PRO/Wireless 2200BG Network Connection
NetConnectionStatus:0
PermanentAddress:
Status:
StatusInfo:
ProductName:Intel(R) PRO/Wireless 2200BG Network Connection
PNPDeviceID:PCIVEN_8086&DEV_4220&SUBSYS_27128086&REV_054&39A85202&0&10F0

5:
Caption:[00000005] WAN 微型端口 (L2TP)
Description:WAN 微型端口 (L2TP)
IPEnabled:False
ServiceName:Rasl2tp
SettingID:{1B53E803-16A3-4F0A-8A9C-5ACCA165935B}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:WAN 微型端口 (L2TP)
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:WAN 微型端口 (L2TP)
PNPDeviceID:ROOTMS_L2TPMINIPORT000

6:
Caption:[00000006] WAN 微型端口 (PPTP)
Description:WAN 微型端口 (PPTP)
IPEnabled:False
ServiceName:PptpMiniport
SettingID:{29983E97-B13D-45AA-8697-2A43DAE07E23}
MACAddress:50:50:54:50:30:30
IPAddress:
AdapterType:广域网 (WAN)
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:WAN 微型端口 (PPTP)
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:WAN 微型端口 (PPTP)
PNPDeviceID:ROOTMS_PPTPMINIPORT000

7:
Caption:[00000007] WAN 微型端口 (PPPOE)
Description:WAN 微型端口 (PPPOE)
IPEnabled:False
ServiceName:RasPppoe
SettingID:{252E9D31-529A-4994-BF9E-D9233F6DE99C}
MACAddress:33:50:6F:45:30:30
IPAddress:
AdapterType:广域网 (WAN)
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:WAN 微型端口 (PPPOE)
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:WAN 微型端口 (PPPOE)
PNPDeviceID:ROOTMS_PPPOEMINIPORT000

8:
Caption:[00000008] 直接并行
Description:直接并行
IPEnabled:False
ServiceName:Raspti
SettingID:{0EB3A22B-A1F5-4A14-9CE1-6D9E4F513AEB}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:直接并行
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:直接并行
PNPDeviceID:ROOTMS_PTIMINIPORT000

9:
Caption:[00000009] WAN 微型端口 (IP)
Description:WAN 微型端口 (IP)
IPEnabled:False
ServiceName:NdisWan
SettingID:{B0DC8F37-A580-42B0-BE2D-E5C53B24B044}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:WAN 微型端口 (IP)
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:WAN 微型端口 (IP)
PNPDeviceID:ROOTMS_NDISWANIP000

10:
Caption:[00000010] 数据包计划程序微型端口
Description:数据包计划程序微型端口
IPEnabled:False
ServiceName:
SettingID:{F19F1965-7AB4-4874-A484-6B621C06288A}
MACAddress:3A:DD:20:52:41:53
IPAddress:
AdapterType:Ethernet 802.3
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:数据包计划程序微型端口
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:数据包计划程序微型端口
PNPDeviceID:ROOTMS_PSCHEDMP001

11:
Caption:[00000011] 数据包计划程序微型端口
Description:数据包计划程序微型端口
IPEnabled:False
ServiceName:
SettingID:{8AD7A9BA-AF20-48B3-9C12-1532946AFE2C}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:数据包计划程序微型端口
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:数据包计划程序微型端口
PNPDeviceID:ROOTMS_PSCHEDMP002

12:
Caption:[00000012] WAN 微型端口 (IPX)
Description:WAN 微型端口 (IPX)
IPEnabled:False
ServiceName:NdisWan
SettingID:{ABDDC0A9-E3A3-4169-8511-0576150CB468}
MACAddress:
IPAddress:
AdapterType:
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:Microsoft
Name:WAN 微型端口 (IPX)
NetConnectionStatus:
PermanentAddress:
Status:
StatusInfo:
ProductName:WAN 微型端口 (IPX)
PNPDeviceID:ROOTMS_NDISWANIPX000

13:
Caption:[00000013] VMware Virtual Ethernet Adapter for VMnet1
Description:VMware Virtual Ethernet Adapter for VMnet1
IPEnabled:True
ServiceName:VMnetAdapter
SettingID:{A5064ACA-A2D7-46AF-994D-F7D6013A5403}
MACAddress:00:50:56:C0:00:01
IPAddress:System.String[]
AdapterType:Ethernet 802.3
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:VMware, Inc.
Name:VMware Virtual Ethernet Adapter for VMnet1
NetConnectionStatus:2
PermanentAddress:
Status:
StatusInfo:
ProductName:VMware Virtual Ethernet Adapter for VMnet1
PNPDeviceID:ROOTVMWARE000

14:
Caption:[00000014] VMware Virtual Ethernet Adapter for VMnet8
Description:VMware Virtual Ethernet Adapter for VMnet8
IPEnabled:True
ServiceName:VMnetAdapter
SettingID:{34421EF5-B6F9-4007-8D20-1AAE83A742D2}
MACAddress:00:50:56:C0:00:08
IPAddress:System.String[]
AdapterType:Ethernet 802.3
Availability:3
ConfigManagerErrorCode:0
ConfigManagerUserConfig:False
Manufacturer:VMware, Inc.
Name:VMware Virtual Ethernet Adapter for VMnet8
NetConnectionStatus:2
PermanentAddress:
Status:
StatusInfo:
ProductName:VMware Virtual Ethernet Adapter for VMnet8
PNPDeviceID:ROOTVMWARE001

《[借过]问个事情》上有1条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据