WMI之Win32硬件类

ROOT//CIMV2

 

"Win32_1394Controller",
"Win32_1394ControllerDevice",
"Win32_BaseBoard",
"Win32_Battery",
"Win32_BIOS",
"Win32_Bus",
"Win32_CDROMDrive",
"Win32_CIMLogicalDeviceCIMDataFile",
"Win32_DeviceBus",
"Win32_DeviceMemoryAddress",
"Win32_DeviceSettings",
"Win32_DisplayConfiguration",
"Win32_DisplayControllerConfiguration",
"Win32_DMAChannel",
"Win32_DriverVXD",
"Win32_FloppyController",
"Win32_FloppyDrive",
"Win32_HeatPipe",
"Win32_IDEController",
"Win32_IDEControllerDevice",
"Win32_InfraredDevice",
"Win32_IRQResource",
"Win32_Keyboard",
"Win32_MotherboardDevice",
"Win32_OnBoardDevice",
"Win32_PCMCIAController",
"Win32_PNPAllocatedResource",
"Win32_PnPDevice",
"Win32_PnPEntity",
"Win32_PointingDevice",
"Win32_PortableBattery",
"Win32_PortConnector",
"Win32_PortResource",
"Win32_POTSModem",
"Win32_POTSModemToSerialPort",
"Win32_PowerManagementEvent",
"Win32_Printer",
"Win32_PrinterConfiguration",
"Win32_PrinterController",
"Win32_PrinterDriverDll",
"Win32_PrinterSetting",
"Win32_PrinterShare",
"Win32_PrintJob",
"Win32_Processor",
"Win32_SCSIController",
"Win32_SCSIControllerDevice",
"Win32_SerialPort",
"Win32_SerialPortConfiguration",
"Win32_SerialPortSetting",
"Win32_SMBIOSMemory",
"Win32_SoundDevice",
"Win32_TemperatureProbe",
"Win32_USBController",
"Win32_USBControllerDevice",
"Win32_VideoConfiguration",
"Win32_VideoController",
"Win32_VideoSettings",
"Win32_VoltageProbe"

 

1、Win32_TemperatureProbe 温度类

class Win32_TemperatureProbe : CIM_TemperatureSensor
{
  sint32   Accuracy;
  uint16   Availability;
  string   Caption;
  uint32   ConfigManagerErrorCode;
  boolean  ConfigManagerUserConfig;
  string   CreationClassName;
  sint32   CurrentReading;
  string   Description;
  string   DeviceID;
  boolean  ErrorCleared;
  string   ErrorDescription;
  datetime InstallDate;
  boolean  IsLinear;
  uint32   LastErrorCode;
  sint32   LowerThresholdCritical;
  sint32   LowerThresholdFatal;
  sint32   LowerThresholdNonCritical;
  sint32   MaxReadable;
  sint32   MinReadable;
  string   Name;
  sint32   NominalReading;
  sint32   NormalMax;
  sint32   NormalMin;
  string   PNPDeviceID;
  uint16   PowerManagementCapabilities[];
  boolean  PowerManagementSupported;
  uint32   Resolution;
  string   Status;
  uint16   StatusInfo;
  string   SystemCreationClassName;
  string   SystemName;
  sint32   Tolerance;
  sint32   UpperThresholdCritical;
  sint32   UpperThresholdFatal;
  sint32   UpperThresholdNonCritical;
};

2、Win32_Processor 处理器类

class Win32_Processor : CIM_Processor
{
  uint16   AddressWidth;
  uint16   Architecture;
  uint16   Availability;
  string   Caption;
  uint32   ConfigManagerErrorCode;
  boolean  ConfigManagerUserConfig;
  uint16   CpuStatus;
  string   CreationClassName;
  uint32   CurrentClockSpeed;
  uint16   CurrentVoltage;
  uint16   DataWidth;
  string   Description;
  string   DeviceID;
  boolean  ErrorCleared;
  string   ErrorDescription;
  uint32   ExtClock;
  uint16   Family;
  datetime InstallDate;
  uint32   L2CacheSize;
  uint32   L2CacheSpeed;
  uint32   L3CacheSize;
  uint32   L3CacheSpeed;
  uint32   LastErrorCode;
  uint16   Level;
  uint16   LoadPercentage;
  string   Manufacturer;
  uint32   MaxClockSpeed;
  string   Name;
  uint32   NumberOfCores;
  uint32   NumberOfLogicalProcessors;
  string   OtherFamilyDescription;
  string   PNPDeviceID;
  uint16   PowerManagementCapabilities[];
  boolean  PowerManagementSupported;
  string   ProcessorId;
  uint16   ProcessorType;
  uint16   Revision;
  string   Role;
  string   SocketDesignation;
  string   Status;
  uint16   StatusInfo;
  string   Stepping;
  string   SystemCreationClassName;
  string   SystemName;
  string   UniqueId;
  uint16   UpgradeMethod;
  string   Version;
  uint32   VoltageCaps;
};

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: `SELECT * FROM Win32_PhysicalMedia`是一条WMI (Windows Management Instrumentation) 查询语句,用于检索Windows计算机上的物理媒体信息。这条查询语句是在WMI数据库中的`Win32_PhysicalMedia`上执行的。 `Win32_PhysicalMedia`提供了有关计算机上所有物理媒体设备的信息,例如硬盘驱动器、光盘驱动器等。执行这个查询语句会返回一个结果集,该集合包含与`Win32_PhysicalMedia`相关的所有属性和属性值。 查询结果包含的一些重要属性可能包括: - `Manufacturer`:制造商信息,诸如Seagate、Western Digital等。 - `SerialNumber`:物理媒体设备的序列号。 - `MediaType`:物理媒体型,如Fixed硬盘驱动器、Removable可移动存储设备等。 - `Size`:物理媒体设备的总大小。 - `PartNumber`:物理媒体设备的零件号。 - `Name`:物理媒体设备的名称。 通过这个查询,可以获得Windows计算机上已连接的所有物理媒体设备的完整信息。可以根据这些信息来监视和管理计算机上的硬件设备,例如检查驱动器的序列号来识别是否存在假冒硬件,或查看设备型和大小来了解计算机的存储配置。 需要注意的是,执行此查询需要管理员权限,并且结果可能因具体计算机和设备而异。 ### 回答2: `select * from win32_physicalmedia` 是一条WMI查询语句,用于检索Win32_PhysicalMedia的所有属性和实例信息。 Win32_PhysicalMediaWMI提供的一个,它用于描述计算机上所有物理存储媒体的信息,包括硬盘驱动器、光驱、磁带等。 通过执行这条查询语句,我们可以获得关于物理媒体的详细信息,包括序列号、媒体型、制造商、型号等。 查询的结果将返回一个包含多个实例的列表,每个实例代表一个物理媒体设备。每个实例都有不同的属性,我们可以通过访问这些属性来获取特定设备的相关信息。 例如,可以通过访问Manufacturer属性获取制造商信息,通过访问Model属性获取设备型号信息。也可以使用SerialNumber属性获取物理媒体的序列号。 总而言之,`select * from win32_physicalmedia` 是一条用于查询Win32_PhysicalMedia的信息的WMI语句,通过它我们可以获取计算机上所有物理存储媒体设备的相关信息。 ### 回答3: select * from win32_physicalmedia是一条Windows Management Instrumentation (WMI) 查询语句,用于检索计算机系统中的物理媒体信息。具体回答如下: 该查询语句将返回计算机系统中所有物理媒体的详细信息。物理媒体是指硬盘驱动器、光驱、磁带机等,在计算机系统中用于存储和读取数据的设备。 返回的信息可能包括媒体的制造商、型号、序列号、接口型、容量、固件版本等详细信息。这些信息对于系统管理员和技术人员来说很有用,可以用于识别硬件设备、管理存储容量、进行故障排除等工作。 通过使用WMI查询语句,可以在命令行或脚本中执行此查询。在命令提示符下输入该查询语句,并按回车键执行即可。查询结果会以表格形式呈现,显示所有物理媒体的相关信息。 需要注意的是,执行此查询需要具有适当的权限。如果以普通用户身份执行该查询,可能无法获取完整的信息或者无法执行该查询。 总之,select * from win32_physicalmedia是一条用于检索计算机系统中物理媒体信息的WMI查询语句,可以方便地获取硬件设备的详细信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值