2016-09-30 139 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