Powershell 使用Windows IOT内核从Raspberry Pi获取CPU温度

Powershell 使用Windows IOT内核从Raspberry Pi获取CPU温度,powershell,raspberry-pi,windows-iot-core-10,Powershell,Raspberry Pi,Windows Iot Core 10,是否有一种方法可以从具有Windows 10 IoT内核的Raspberry Pi获取CPU温度,就像您可以在Raspbian中运行“vcgencmd measure_temp”一样?不幸的是,Windows Dashboard应用程序管理器“SystemPerformance.htm”仅显示CPU性能,而PowerShell for Windows IOT Core不包含“Get-WmiObject”Cmdlet以运行此页面上的脚本:。还有其他选择吗(我认为WMI cmdlet不存在,但是CI

是否有一种方法可以从具有Windows 10 IoT内核的Raspberry Pi获取CPU温度,就像您可以在Raspbian中运行“vcgencmd measure_temp”一样?不幸的是,Windows Dashboard应用程序管理器“SystemPerformance.htm”仅显示CPU性能,而PowerShell for Windows IOT Core不包含“Get-WmiObject”Cmdlet以运行此页面上的脚本:。还有其他选择吗(

我认为WMI cmdlet不存在,但是CIM cmdlet存在。我也不确定您需要的WMI类是否存在。但是使用CIM cmdlet看起来像这样:

$t = Get-CimInstance MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"

也许你可以试试开放硬件监控报告,它是一个开源软件。

不幸的是,正在运行Get-CimInstance MSAcpi_ThermalZoneTemperature-命名空间“root/wmi”我得到..Get-CimInstance:不支持+类别信息:未实现:root/wmi:MSAcpi_ThermalZoneTemperature:String)[Get-CimInstance],CIMException+FullyQualifiedErrorId:HRESULT 0x8004100c,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommandI似乎正在查看另一个线程上发布的内容,有人发布的答案/解决方案不是一个非常令人鼓舞的…:(…是的,这意味着“MSAcpi_ThermalZoneTemperature”类不是用来查询的。谢谢你的提示。它对我的Windows有帮助。