2016-09-30 148 views

回答

0

相信WMI的cmdlet不存在,但CIM的cmdlet的我也不清楚,如果你需要的WMI类是有,但使用CIM cmdlet的会是这个样子:。

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

不幸的是运行即获取-CimInstance MSAcpi_ThermalZoneTemperature - 命名 “根/ WMI” 我知道.. GET-CimInstance:不支持 + CategoryInfo:NotImplemented:根/ WMI:MSAcpi_ThermalZoneTemperature:字符串)[获取-CimInstance],CimExc 主器件接收 + FullyQualifiedErrorId: HRESULT 0x8004100c,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand –

+1

我似乎在寻找什么被张贴在这个其他线程和答案/解决方案有人发布是不是一个非常鼓舞人心的...... :(... http://stackoverflow.com/questions/37703705/raspberry-pi-cpu- temp –

+0

是的,这意味着类“MSAcpi_ThermalZoneTemperature”不在那里查询。 – BenH