WMI
WMI使用
windows management instrumentation
1. 开始-运行-输入:wbemtest 回车
2. 单击"连接", 输入:root\cimv2 回车; 或者ROOT\SecurityCenter
3. 单击"查询", 输入:SELECT * FROM Win32_Process 应用; 或者SELECT * FROM AntiVirusProduct
//进程PID
SELECT * FROM Win32_Process
//BIOS信息
SELECT * FROM Win32_ComputerSystemProduct
//磁盘列表
SELECT * FROM Win32_LogicalDisk
//主板信息
Select * from Win32_BaseBoard
//光驱
Select * from Win32_CDROMDrive
//BIOS
Select * from Win32_BIOS
//操作系统
SELECT * FROM Win32_OperatingSystem
//服务列表
SELECT * FROM Win32_Service
//内存
Select * from Win32_PhysicalMemory
//键盘信息
Select * from Win32_Keyboard
//Modem
Select * from Win32_POTSModem
//网卡信息
Select * from Win32_NetworkAdapterConfiguration
类名列表
Win32_UserAccount
Win32_GroupUser
Win32_Share
Win32_NTLogEvent
Win32_DiskPartition
Win32_ComputerSystem