计算机信息查看
-. import platform
import platform
def TestPlatform():
print("---------SYSTEM INFO--------")
#获取Python版本 3.7.1
print(platform.python_version())
#获取Python版本 v3.7.1
print(platform.python_branch()) #获取操作系统可执行程序的结构 (’32bit’, ‘WindowsPE’)
print(platform.architecture()) # 计算机的名称 DESKTOP-90JE76G
print(platform.node()) # 获取操作系统名称及版本号,Windows-7-6.1.7601-SP1
print(platform.platform()) # 计算机处理器信息, Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
print(platform.processor()) # 获取操作系统中Python的构建日期 ('v3.7.1:260ec2c36a', 'Oct 20 2018 14:57:15')
print(platform.python_build()) # 获取系统中python解释器的信息 MSC v.1915 64 bit (AMD64)
print(platform.python_compiler()) print(platform.release()) # print(platform.system()) # windows # 获取操作系统的版本 10.0.17763
print(platform.version()) # 包含上面所有的信息汇总
print("\n\n\n")
for key in platform.uname():
print(key)
'''
Windows
DESKTOP-90JE76G
10
10.0.17763
AMD64
Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
'''
二. import wmi
import wmi
c = wmi.WMI()
#处理器
def printCPU():
tmpdict = {}
tmpdict["CpuCores"] = 0
for cpu in c.Win32_Processor():
tmpdict["cpuid"] = cpu.ProcessorId.strip()
tmpdict["CpuType"] = cpu.Name
tmpdict['systemName'] = cpu.SystemName
try:
tmpdict["CpuCores"] = cpu.NumberOfCores
except:
tmpdict["CpuCores"] += 1
tmpdict["CpuClock"] = cpu.MaxClockSpeed
tmpdict['DataWidth'] = cpu.DataWidth
print(tmpdict)return tmpdict #主板
def printMain_board():
boards = []
# print len(c.Win32_BaseBoard()):
for board_id in c.Win32_BaseBoard():
tmpmsg = {}
tmpmsg['UUID'] = board_id.qualifiers['UUID'][1:-1] #主板UUID,有的主板这部分信息取到为空值,ffffff-ffffff这样的
tmpmsg['SerialNumber'] = board_id.SerialNumber #主板序列号
tmpmsg['Manufacturer'] = board_id.Manufacturer #主板生产品牌厂家
tmpmsg['Product'] = board_id.Product #主板型号
boards.append(tmpmsg)
print(boards)
return boards #BIOS
def printBIOS():
bioss = []
for bios_id in c.Win32_BIOS():
tmpmsg = {}
tmpmsg['BiosCharacteristics'] = bios_id.BiosCharacteristics #BIOS特征码
tmpmsg['version'] = bios_id.Version #BIOS版本
tmpmsg['Manufacturer'] = bios_id.Manufacturer.strip() #BIOS固件生产厂家
tmpmsg['ReleaseDate'] = bios_id.ReleaseDate #BIOS释放日期
tmpmsg['SMBIOSBIOSVersion'] = bios_id.SMBIOSBIOSVersion #系统管理规范版本
bioss.append(tmpmsg)
print(bioss)
return bioss #硬盘
def printDisk():
disks = []
for disk in c.Win32_DiskDrive():
# print disk.__dict__
tmpmsg = {}
tmpmsg['SerialNumber'] = disk.SerialNumber.strip()
tmpmsg['DeviceID'] = disk.DeviceID
tmpmsg['Caption'] = disk.Caption
tmpmsg['Size'] = disk.Size
tmpmsg['UUID'] = disk.qualifiers['UUID'][1:-1]
disks.append(tmpmsg)
for d in disks:
print(d)
return disks #内存
def printPhysicalMemory():
memorys = []
for mem in c.Win32_PhysicalMemory():
tmpmsg = {}
tmpmsg['UUID'] = mem.qualifiers['UUID'][1:-1]
tmpmsg['BankLabel'] = mem.BankLabel
tmpmsg['SerialNumber'] = mem.SerialNumber.strip()
tmpmsg['ConfiguredClockSpeed'] = mem.ConfiguredClockSpeed
tmpmsg['Capacity'] = mem.Capacity
tmpmsg['ConfiguredVoltage'] = mem.ConfiguredVoltage
memorys.append(tmpmsg)
for m in memorys:
print(m)
return memorys #电池信息,只有笔记本才会有电池选项
def printBattery():
isBatterys = False
for b in c.Win32_Battery():
isBatterys = True
return isBatterys #网卡mac地址:
def printMacAddress():
macs = []
for n in c.Win32_NetworkAdapter():
mactmp = n.MACAddress
if mactmp and len(mactmp.strip()) > 5:
tmpmsg = {}
tmpmsg['MACAddress'] = n.MACAddress
tmpmsg['Name'] = n.Name
tmpmsg['DeviceID'] = n.DeviceID
tmpmsg['AdapterType'] = n.AdapterType
tmpmsg['Speed'] = n.Speed
macs.append(tmpmsg)
print(macs)
return macs def main(): printCPU()
printMain_board()
printBIOS()
printDisk()
printPhysicalMemory()
printMacAddress()
print(printBattery()) if __name__ == "__main__":
main()
'''
{'CpuCores': 6, 'cpuid': 'BFEBFBFF000906EA', 'CpuType': 'Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz', 'systemName': 'DESKTOP-90JE76G', 'CpuClock': 2208, 'DataWidth': 64} [{'UUID': 'FAF76B95-798C-11D2-AAD1-006008C78BC7', 'SerialNumber': 'PF16GEJR', 'Manufacturer': 'LENOVO', 'Product': 'LNVNB161216'}] [{'BiosCharacteristics': (7, 11, 12, 15, 16, 19, 20, 21, 22, 23, 24, 25, 27, 30, 32, 33, 40, 42, 43), 'version': 'LENOVO - 1', 'Manufacturer': 'LENOVO', 'ReleaseDate': '20180830000000.000000+000', 'SMBIOSBIOSVersion': '8JCN46WW'}] {'SerialNumber': 'WL18H5PN', 'DeviceID': '\\\\.\\PHYSICALDRIVE0', 'Caption': 'ST1000LM035-1RK172', 'Size': '1000202273280', 'UUID': '8502C4B2-5FBB-11D2-AAC1-006008C78BC7'} {'SerialNumber': 'NJ87N649513207P1I _00000001.', 'DeviceID': '\\\\.\\PHYSICALDRIVE1', 'Caption': 'NVMe HFM128GDHTNG-831', 'Size': '128034708480', 'UUID': '8502C4B2-5FBB-11D2-AAC1-006008C78BC7'} {'UUID': 'FAF76B93-798C-11D2-AAD1-006008C78BC7', 'BankLabel': 'BANK 0', 'SerialNumber': '117D8C14', 'ConfiguredClockSpeed': 2667, 'Capacity': '8589934592', 'ConfiguredVoltage': 1200} [{'MACAddress': '8C:16:45:DC:6F:B3',
'Name': 'Realtek PCIe GBE Family Controller',
'DeviceID': '1',
'AdapterType': '以太网 802.3',
'Speed': '9223372036854775807'},
{'MACAddress': 'DC:A2:66:40:D8:DD',
'Name': 'Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC',
'DeviceID': '2',
'AdapterType': '以太网 802.3',
'Speed': '460350000'},
{'MACAddress': 'DC:A2:66:40:D8:DE',
'Name': 'Bluetooth Device (Personal Area Network)',
'DeviceID': '3',
'AdapterType': '以太网 802.3',
'Speed': '3000000'},
{'MACAddress': 'DE:A2:66:40:D8:DD',
'Name': 'Microsoft Wi-Fi Direct Virtual Adapter',
'DeviceID': '4',
'AdapterType': '以太网 802.3',
'Speed': '9223372036854775807'},
{'MACAddress': '6A:FE:20:52:41:53',
'Name': 'WAN Miniport (IP)',
'DeviceID': '10',
'AdapterType': '以太网 802.3',
'Speed': None},
{'MACAddress': '70:46:20:52:41:53',
'Name': 'WAN Miniport (IPv6)',
'DeviceID': '11',
'AdapterType': '以太网 802.3',
'Speed': None},
{'MACAddress': '74:76:20:52:41:53',
'Name': 'WAN Miniport (Network Monitor)',
'DeviceID': '12',
'AdapterType': '以太网 802.3',
'Speed': None},
{'MACAddress': 'DC:A2:66:40:D8:DD',
'Name': 'Microsoft Wi-Fi Direct Virtual Adapter #2',
'DeviceID': '13',
'AdapterType': '以太网 802.3',
'Speed': '9223372036854775807'},
{'MACAddress': '00:50:56:C0:00:01',
'Name': 'VMware Virtual Ethernet Adapter for VMnet1',
'DeviceID': '14',
'AdapterType': '以太网 802.3',
'Speed': '100000000'},
{'MACAddress': '00:50:56:C0:00:08',
'Name': 'VMware Virtual Ethernet Adapter for VMnet8',
'DeviceID': '15',
'AdapterType': '以太网 802.3',
'Speed': '100000000'}]
True
'''

Console

.
import wmi
c=wmi.WMI()
i=0
key= c.Win32_Processor()
for k in key:
print(k,"\t",i)
i=i+1
print(k.name)
'''
instance of Win32_Processor
{
AddressWidth = 64;
Architecture = 9;
AssetTag = "To Be Filled By O.E.M.";
Availability = 3;
Caption = "Intel64 Family 6 Model 158 Stepping 10";
Characteristics = 252;
CpuStatus = 1;
CreationClassName = "Win32_Processor";
CurrentClockSpeed = 2208;
CurrentVoltage = 8;
DataWidth = 64;
Description = "Intel64 Family 6 Model 158 Stepping 10";
DeviceID = "CPU0";
ExtClock = 100;
Family = 198;
L2CacheSize = 1536;
L3CacheSize = 9216;
L3CacheSpeed = 0;
Level = 6;
LoadPercentage = 16;
Manufacturer = "GenuineIntel";
MaxClockSpeed = 2208;
Name = "Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz";
NumberOfCores = 6;
NumberOfEnabledCore = 6;
NumberOfLogicalProcessors = 12;
PartNumber = "To Be Filled By O.E.M.";
PowerManagementSupported = FALSE;
ProcessorId = "BFEBFBFF000906EA";
ProcessorType = 3;
Role = "CPU";
SecondLevelAddressTranslationExtensions = TRUE;
SerialNumber = "To Be Filled By O.E.M.";
SocketDesignation = "U3E1";
Status = "OK";
StatusInfo = 3;
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
ThreadCount = 12;
UpgradeMethod = 52;
Version = "";
VirtualizationFirmwareEnabled = TRUE;
VMMonitorModeExtensions = TRUE;
};
0
Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
'''

c.Win32_Processor()

import wmi
c=wmi.WMI()
i=0
key= c.Win32_BaseBoard()
for k in key:
print(k,"\t",i)
i=i+1
print(k.Manufacturer)
'''
instance of Win32_BaseBoard
{
Caption = "基板";
ConfigOptions = {"ConfigOptions1", "ConfigOptions2", "ConfigOptions3"};
CreationClassName = "Win32_BaseBoard";
Description = "基板";
HostingBoard = TRUE;
HotSwappable = FALSE;
Manufacturer = "LENOVO";
Name = "基板";
PoweredOn = TRUE;
Product = "LNVNB161216";
Removable = FALSE;
Replaceable = TRUE;
RequiresDaughterBoard = FALSE;
SerialNumber = "PF16GEJR";
Status = "OK";
Tag = "Base Board";
Version = "SDK0L77769 WIN";
};
0
LENOVO '''

c.Win32_BaseBoard()

#coding=utf-8
import wmi
c=wmi.WMI()
i=0
key= c.Win32_BIOS()
for k in key:
print(k,"\t",i)
i=i+1
print(k.Manufacturer)
'''
instance of Win32_BIOS
{
BiosCharacteristics = {7, 11, 12, 15, 16, 19, 20, 21, 22, 23, 24, 25, 27, 30, 32, 33, 40, 42, 43};
BIOSVersion = {"LENOVO - 1", "8JCN46WW", "INSYDE Corp. - 58032046"};
Caption = "8JCN46WW";
CurrentLanguage = "en|US|iso8859-1,0";
Description = "8JCN46WW";
EmbeddedControllerMajorVersion = 1;
EmbeddedControllerMinorVersion = 46;
InstallableLanguages = 8;
ListOfLanguages = {"en|US|iso8859-1,0", "fr|FR|iso8859-1,0", "zh|TW|unicode,0", "ja|JP|unicode,0", "it|IT|iso8859-1,0", "es|ES|iso8859-1,0", "de|DE|iso8859-1,0", "pt|PT|iso8859-1,0"};
Manufacturer = "LENOVO";
Name = "8JCN46WW";
PrimaryBIOS = TRUE;
ReleaseDate = "20180830000000.000000+000";
SerialNumber = "PF16GEJR";
SMBIOSBIOSVersion = "8JCN46WW";
SMBIOSMajorVersion = 3;
SMBIOSMinorVersion = 0;
SMBIOSPresent = TRUE;
SoftwareElementID = "8JCN46WW";
SoftwareElementState = 3;
Status = "OK";
SystemBiosMajorVersion = 1;
SystemBiosMinorVersion = 46;
TargetOperatingSystem = 0;
Version = "LENOVO - 1";
};
0
LENOVO '''

c.Win32_BIOS()

#coding=utf-8
import wmi
c=wmi.WMI()
i=0
key= c.Win32_DiskDrive()
for k in key:
print(k,"\t",i)
i=i+1
print(k.SerialNumber) '''
instance of Win32_DiskDrive
{
BytesPerSector = 512;
Capabilities = {3, 4};
CapabilityDescriptions = {"Random Access", "Supports Writing"};
Caption = "ST1000LM035-1RK172";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_DiskDrive";
Description = "磁盘驱动器";
DeviceID = "\\\\.\\PHYSICALDRIVE0";
FirmwareRevision = "LCM2";
Index = 0;
InterfaceType = "SCSI";
Manufacturer = "(标准磁盘驱动器)";
MediaLoaded = TRUE;
MediaType = "Fixed hard disk media";
Model = "ST1000LM035-1RK172";
Name = "\\\\.\\PHYSICALDRIVE0";
Partitions = 7;
PNPDeviceID = "SCSI\\DISK&VEN_ST1000LM&PROD_035-1RK172\\4&377E5BE4&0&000400";
SCSIBus = 0;
SCSILogicalUnit = 0;
SCSIPort = 0;
SCSITargetId = 4;
SectorsPerTrack = 63;
SerialNumber = " WL18H5PN";
Size = "1000202273280";
Status = "OK";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TotalCylinders = "121601";
TotalHeads = 255;
TotalSectors = "1953520065";
TotalTracks = "31008255";
TracksPerCylinder = 255;
};
0
WL18H5PN instance of Win32_DiskDrive
{
BytesPerSector = 512;
Capabilities = {3, 4};
CapabilityDescriptions = {"Random Access", "Supports Writing"};
Caption = "NVMe HFM128GDHTNG-831";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_DiskDrive";
Description = "磁盘驱动器";
DeviceID = "\\\\.\\PHYSICALDRIVE1";
FirmwareRevision = "0C00";
Index = 1;
InterfaceType = "SCSI";
Manufacturer = "(标准磁盘驱动器)";
MediaLoaded = TRUE;
MediaType = "Fixed hard disk media";
Model = "NVMe HFM128GDHTNG-831";
Name = "\\\\.\\PHYSICALDRIVE1";
Partitions = 1;
PNPDeviceID = "SCSI\\DISK&VEN_NVME&PROD_HFM128GDHTNG-831\\4&377E5BE4&0&010000";
SCSIBus = 1;
SCSILogicalUnit = 0;
SCSIPort = 0;
SCSITargetId = 0;
SectorsPerTrack = 63;
SerialNumber = "NJ87N649513207P1I _00000001.";
Size = "128034708480";
Status = "OK";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TotalCylinders = "15566";
TotalHeads = 255;
TotalSectors = "250067790";
TotalTracks = "3969330";
TracksPerCylinder = 255;
};
1
NJ87N649513207P1I _00000001. '''

c.Win32_DiskDrive()

#coding=utf-8
import wmi
c=wmi.WMI()
i=0
key= c.Win32_PhysicalMemory()
for k in key:
print(k,"\t",i)
i=i+1
print(k.SerialNumber) '''
instance of Win32_PhysicalMemory
{
Attributes = 1;
BankLabel = "BANK 0";
Capacity = "8589934592";
Caption = "物理内存";
ConfiguredClockSpeed = 2667;
ConfiguredVoltage = 1200;
CreationClassName = "Win32_PhysicalMemory";
DataWidth = 64;
Description = "物理内存";
DeviceLocator = "ChannelA-DIMM0";
FormFactor = 12;
InterleaveDataDepth = 1;
InterleavePosition = 1;
Manufacturer = "Ramaxel";
MaxVoltage = 1250;
MemoryType = 0;
MinVoltage = 1250;
Name = "物理内存";
PartNumber = "RMSA3260ME78HAF-2666";
SerialNumber = "117D8C14";
SMBIOSMemoryType = 26;
Speed = 2667;
Tag = "Physical Memory 0";
TotalWidth = 64;
TypeDetail = 128;
};
0
117D8C14
'''

c.Win32_PhysicalMemory()

#coding=utf-8
import wmi
c=wmi.WMI()
i=0
key= c.Win32_Battery()
for k in key:
print(k,"\t",i)
i=i+1
print(k.EstimatedChargeRemaining) # 电量
'''
instance of Win32_Battery
{
Availability = 2;
BatteryStatus = 2;
Caption = "内部电池";
Chemistry = 2;
CreationClassName = "Win32_Battery";
Description = "内部电池";
DesignVoltage = "12739";
DeviceID = " 1302CPT-COSL17C3PG1";
EstimatedChargeRemaining = 100;
EstimatedRunTime = 71582788;
Name = "L17C3PG1";
PowerManagementCapabilities = {1};
PowerManagementSupported = FALSE;
Status = "OK";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
};
0
100
'''

c.Win32_Battery()

#coding=utf-8
import wmi
c=wmi.WMI()
i=0
key= c.Win32_NetworkAdapter()
for k in key:
print(k,"\t",i)
i=i+1
print(k.AdapterType) # 电量
'''
instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000000] Microsoft Kernel Debug Network Adapter";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Microsoft Kernel Debug Network Adapter";
DeviceID = "0";
Index = 0;
Installed = TRUE;
InterfaceIndex = 5;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "Microsoft Kernel Debug Network Adapter";
PhysicalAdapter = FALSE;
PNPDeviceID = "ROOT\\KDNIC\\0000";
PowerManagementSupported = FALSE;
ProductName = "Microsoft Kernel Debug Network Adapter";
ServiceName = "kdnic";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
0
None instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000001] Realtek PCIe GBE Family Controller";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Realtek PCIe GBE Family Controller";
DeviceID = "1";
GUID = "{9B246998-5B30-431E-8353-A9F6857F5F14}";
Index = 1;
Installed = TRUE;
InterfaceIndex = 13;
MACAddress = "8C:16:45:DC:6F:B3";
Manufacturer = "Realtek";
MaxNumberControlled = 0;
Name = "Realtek PCIe GBE Family Controller";
NetConnectionID = "以太网";
NetConnectionStatus = 7;
NetEnabled = FALSE;
PhysicalAdapter = TRUE;
PNPDeviceID = "PCI\\VEN_10EC&DEV_8168&SUBSYS_38B417AA&REV_15\\01000000684CE00000";
PowerManagementSupported = FALSE;
ProductName = "Realtek PCIe GBE Family Controller";
ServiceName = "rt640x64";
Speed = "9223372036854775807";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
1
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000002] Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC";
DeviceID = "2";
GUID = "{FBE1BDDF-9EE9-44AD-B0AD-6876A9253472}";
Index = 2;
Installed = TRUE;
InterfaceIndex = 20;
MACAddress = "DC:A2:66:40:D8:DD";
Manufacturer = "Realtek Semiconductor Corp.";
MaxNumberControlled = 0;
Name = "Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC";
NetConnectionID = "WLAN";
NetConnectionStatus = 2;
NetEnabled = TRUE;
PhysicalAdapter = TRUE;
PNPDeviceID = "PCI\\VEN_10EC&DEV_B822&SUBSYS_B02317AA&REV_00\\00E04CFFFEB8220100";
PowerManagementSupported = FALSE;
ProductName = "Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC";
ServiceName = "RTWlanE";
Speed = "92000000";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
2
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000003] Bluetooth Device (Personal Area Network)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Bluetooth Device (Personal Area Network)";
DeviceID = "3";
GUID = "{72A3FA24-5921-45D1-ABB7-BE1819A87195}";
Index = 3;
Installed = TRUE;
InterfaceIndex = 10;
MACAddress = "DC:A2:66:40:D8:DE";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "Bluetooth Device (Personal Area Network)";
NetConnectionID = "蓝牙网络连接";
NetConnectionStatus = 7;
NetEnabled = FALSE;
PhysicalAdapter = TRUE;
PNPDeviceID = "BTH\\MS_BTHPAN\\6&95708F1&0&2";
PowerManagementSupported = FALSE;
ProductName = "Bluetooth Device (Personal Area Network)";
ServiceName = "BthPan";
Speed = "3000000";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
3
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000004] Microsoft Wi-Fi Direct Virtual Adapter";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Microsoft Wi-Fi Direct Virtual Adapter";
DeviceID = "4";
Index = 4;
Installed = TRUE;
InterfaceIndex = 7;
MACAddress = "DE:A2:66:40:D8:DD";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "Microsoft Wi-Fi Direct Virtual Adapter";
PhysicalAdapter = FALSE;
PNPDeviceID = "{5D624F94-8850-40C3-A3FA-A4FD2080BAF3}\\VWIFIMP_WFD\\5&3B866BE7&0&11";
PowerManagementSupported = FALSE;
ProductName = "Microsoft Wi-Fi Direct Virtual Adapter";
ServiceName = "vwifimp";
Speed = "9223372036854775807";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
4
以太网 802.3 instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000005] WAN Miniport (SSTP)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (SSTP)";
DeviceID = "5";
Index = 5;
Installed = TRUE;
InterfaceIndex = 15;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (SSTP)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_SSTPMINIPORT";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (SSTP)";
ServiceName = "RasSstp";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
5
None instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000006] WAN Miniport (IKEv2)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (IKEv2)";
DeviceID = "6";
Index = 6;
Installed = TRUE;
InterfaceIndex = 9;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (IKEv2)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_AGILEVPNMINIPORT";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (IKEv2)";
ServiceName = "RasAgileVpn";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
6
None instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000007] WAN Miniport (L2TP)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (L2TP)";
DeviceID = "7";
Index = 7;
Installed = TRUE;
InterfaceIndex = 6;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (L2TP)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_L2TPMINIPORT";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (L2TP)";
ServiceName = "Rasl2tp";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
7
None instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000008] WAN Miniport (PPTP)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (PPTP)";
DeviceID = "8";
Index = 8;
Installed = TRUE;
InterfaceIndex = 17;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (PPTP)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_PPTPMINIPORT";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (PPTP)";
ServiceName = "PptpMiniport";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
8
None instance of Win32_NetworkAdapter
{
Availability = 3;
Caption = "[00000009] WAN Miniport (PPPOE)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (PPPOE)";
DeviceID = "9";
Index = 9;
Installed = TRUE;
InterfaceIndex = 19;
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (PPPOE)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_PPPOEMINIPORT";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (PPPOE)";
ServiceName = "RasPppoe";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
9
None instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000010] WAN Miniport (IP)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (IP)";
DeviceID = "10";
Index = 10;
Installed = TRUE;
InterfaceIndex = 4;
MACAddress = "D0:59:20:52:41:53";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (IP)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_NDISWANIP";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (IP)";
ServiceName = "NdisWan";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
10
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000011] WAN Miniport (IPv6)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (IPv6)";
DeviceID = "11";
Index = 11;
Installed = TRUE;
InterfaceIndex = 16;
MACAddress = "D0:69:20:52:41:53";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (IPv6)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_NDISWANIPV6";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (IPv6)";
ServiceName = "NdisWan";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
11
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000012] WAN Miniport (Network Monitor)";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "WAN Miniport (Network Monitor)";
DeviceID = "12";
Index = 12;
Installed = TRUE;
InterfaceIndex = 18;
MACAddress = "D2:85:20:52:41:53";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "WAN Miniport (Network Monitor)";
PhysicalAdapter = FALSE;
PNPDeviceID = "SWD\\MSRRAS\\MS_NDISWANBH";
PowerManagementSupported = FALSE;
ProductName = "WAN Miniport (Network Monitor)";
ServiceName = "NdisWan";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
12
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000013] Microsoft Wi-Fi Direct Virtual Adapter";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "Microsoft Wi-Fi Direct Virtual Adapter";
DeviceID = "13";
Index = 13;
Installed = TRUE;
InterfaceIndex = 2;
MACAddress = "DC:A2:66:40:D8:DD";
Manufacturer = "Microsoft";
MaxNumberControlled = 0;
Name = "Microsoft Wi-Fi Direct Virtual Adapter #2";
PhysicalAdapter = FALSE;
PNPDeviceID = "{5D624F94-8850-40C3-A3FA-A4FD2080BAF3}\\VWIFIMP_WFD\\5&3B866BE7&0&12";
PowerManagementSupported = FALSE;
ProductName = "Microsoft Wi-Fi Direct Virtual Adapter";
ServiceName = "vwifimp";
Speed = "9223372036854775807";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
13
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000014] VMware Virtual Ethernet Adapter for VMnet1";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "VMware Virtual Ethernet Adapter for VMnet1";
DeviceID = "14";
GUID = "{72FCEB98-291F-4620-9AF9-94EC298C1C5D}";
Index = 14;
Installed = TRUE;
InterfaceIndex = 11;
MACAddress = "00:50:56:C0:00:01";
Manufacturer = "VMware, Inc.";
MaxNumberControlled = 0;
Name = "VMware Virtual Ethernet Adapter for VMnet1";
NetConnectionID = "VMware Network Adapter VMnet1";
NetConnectionStatus = 2;
NetEnabled = TRUE;
PhysicalAdapter = TRUE;
PNPDeviceID = "ROOT\\VMWARE\\0000";
PowerManagementSupported = FALSE;
ProductName = "VMware Virtual Ethernet Adapter for VMnet1";
ServiceName = "VMnetAdapter";
Speed = "100000000";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
14
以太网 802.3 instance of Win32_NetworkAdapter
{
AdapterType = "以太网 802.3";
AdapterTypeId = 0;
Availability = 3;
Caption = "[00000015] VMware Virtual Ethernet Adapter for VMnet8";
ConfigManagerErrorCode = 0;
ConfigManagerUserConfig = FALSE;
CreationClassName = "Win32_NetworkAdapter";
Description = "VMware Virtual Ethernet Adapter for VMnet8";
DeviceID = "15";
GUID = "{A82FC774-4A22-44C9-BCC2-80876AFE73EB}";
Index = 15;
Installed = TRUE;
InterfaceIndex = 14;
MACAddress = "00:50:56:C0:00:08";
Manufacturer = "VMware, Inc.";
MaxNumberControlled = 0;
Name = "VMware Virtual Ethernet Adapter for VMnet8";
NetConnectionID = "VMware Network Adapter VMnet8";
NetConnectionStatus = 2;
NetEnabled = TRUE;
PhysicalAdapter = TRUE;
PNPDeviceID = "ROOT\\VMWARE\\0001";
PowerManagementSupported = FALSE;
ProductName = "VMware Virtual Ethernet Adapter for VMnet8";
ServiceName = "VMnetAdapter";
Speed = "100000000";
SystemCreationClassName = "Win32_ComputerSystem";
SystemName = "DESKTOP-90JE76G";
TimeOfLastReset = "20191019133224.500000+480";
};
15
以太网 802.3
'''

c.Win32_NetworkAdapter()

.

python computer info look的更多相关文章

  1. python 第三方模块 转 https://github.com/masterpy/zwpy_lst

    Chardet,字符编码探测器,可以自动检测文本.网页.xml的编码. colorama,主要用来给文本添加各种颜色,并且非常简单易用. Prettytable,主要用于在终端或浏览器端构建格式化的输 ...

  2. python第三方库,你要的这里都有

    Python的第三方库多的超出我的想象. python 第三方模块 转 https://github.com/masterpy/zwpy_lst   Chardet,字符编码探测器,可以自动检测文本. ...

  3. Python 库,资源

    库名称简介 Chardet字符编码探测器,可以自动检测文本.网页.xml的编码. colorama主要用来给文本添加各种颜色,并且非常简单易用. Prettytable主要用于在终端或浏览器端构建格式 ...

  4. 这几天加班熬夜把所有Python库整理了一遍,非常全面!

    库名称简介 Chardet 字符编码探测器,可以自动检测文本.网页.xml的编码.colorama 主要用来给文本添加各种颜色,并且非常简单易用.Prettytable 主要用于在终端或浏览器端构建格 ...

  5. 花了三个月终于把所有的 Python 库全部整理了!可以说很全面了

    库名称简介 Chardet字符编码探测器,可以自动检测文本.网页.xml的编码. colorama主要用来给文本添加各种颜色,并且非常简单易用. Prettytable主要用于在终端或浏览器端构建格式 ...

  6. python常用库(转)

    转自http://www.west999.com/info/html/wangluobiancheng/qita/20180729/4410114.html Python常用的库简单介绍一下 fuzz ...

  7. Python全部库整理

    库名称简介 Chardet字符编码探测器,可以自动检测文本.网页.xml的编码. colorama主要用来给文本添加各种颜色,并且非常简单易用. Prettytable主要用于在终端或浏览器端构建格式 ...

  8. Python库整理

    库名称简介 Chardet字符编码探测器,可以自动检测文本.网页.xml的编码. colorama主要用来给文本添加各种颜色,并且非常简单易用. Prettytable主要用于在终端或浏览器端构建格式 ...

  9. Python常用的库简单介绍一下

    Python常用的库简单介绍一下fuzzywuzzy ,字符串模糊匹配. esmre ,正则表达式的加速器. colorama 主要用来给文本添加各种颜色,并且非常简单易用. Prettytable ...

随机推荐

  1. 推荐系统系列(三):FNN理论与实践

    背景 在FM之后出现了很多基于FM的升级改造工作,由于计算复杂度等原因,FM通常只对特征进行二阶交叉.当面对海量高度稀疏的用户行为反馈数据时,二阶交叉往往是不够的,三阶.四阶甚至更高阶的组合交叉能够进 ...

  2. 存储映射--mmap

    存储映射 使一个磁盘文件与存储空间中的一个缓冲区相映射. 当从缓冲区中取数据,就相当于读文件中的相应字节. 将数据存入缓冲区,则相应的字节就自动写入文件. 使用这种方法,首先应通知内核,将一个指定文件 ...

  3. BZOJ 5330 Luogu P4607 [SDOI2018]反回文串 (莫比乌斯反演、Pollard Rho算法)

    题目链接 (BZOJ) https://www.lydsy.com/JudgeOnline/problem.php?id=5330 (Luogu) https://www.luogu.org/prob ...

  4. JavaWeb_(Hibernate框架)Hibernate中重要的api

    Hibernate中重要的api Configuration SessionFactory Session(重点) Transaction 在Dao层中UserDao.java使用Hibernate向 ...

  5. python-日常用法小记

    1.判断是否是数字 math.isnan("a") 2.数学math math.log(x) 3.查看安装路径 import sys print sys.path 4.字符串与日期 ...

  6. 部分和问题(dfs)

    部分和问题 描述 给定整数a1.a2........an,判断是否可以从中选出若干数,使它们的和恰好为K. 输入 首先,n和k,n表示数的个数,k表示数的和.接着一行n个数.(1<=n<= ...

  7. C++入门经典-例9.3-类模板,简单类模板

    1:使用template关键字不但可以定义函数模板,而且可以定义类模板.类模板代表一族类,它是用来描述通用数据类型或处理方法的机制,它使类中的一些数据成员和成员函数的参数或返回值可以取任意数据类型.类 ...

  8. sscanf(char*,char*,,,,) sprintf(char*," ",,,);

    从字符串读取格式化输入 输入到字符串中

  9. mysql字符串函数:FIND_IN_SET()使用方法详解

    语法: FIND_IN_SET(str,strlist) 第一个参数str是要查找的字符串. 第二个参数strlist是要搜索的逗号分隔的字符串列表. 假如字符串str 在由N 子链组成的字符串列表s ...

  10. MySQL基础普及《MySQL管理之道:性能调优、高可用与监控》

    最近工作的内容涉及MySQL运维内容,陆陆续续读了几本相关的书,其中一本是<MySQL管理之道:性能调优.高可用与监控>. 内容涵盖性能调优(包括sql优化等).备份.高可用,以及读写分离 ...