r/PowerShell • u/Mskews • Apr 05 '26
Solved Get CPU Temp not working
Hi- Ive tried both Get-Cim and Get-wmi and both come back with
Get-CimInstance : Not supported
PS C:\windows\system32> Get-CimInstance -Namespace "root\WMI" -ClassName "MSAcpi_ThermalZoneTemperature"
Get-CimInstance : Not supporte
At line:1 char:1
+ Get-CimInstance -Namespace "root\WMI" -ClassName "MSAcpi_ThermalZoneT ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (root\WMI:MSAcpi_ThermalZoneTemperature:String) [Get-CimInstance], CimException
+ FullyQualifiedErrorId : HRESULT 0x8004100c,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
10
u/g3n3 Apr 05 '26
Yeah I mean your hardware doesn’t support it. Pretty clear.
4
u/_Buldozzer Apr 05 '26
Try Libre Hardware Monitor. They have a library you can use 8n PowerShell.
1
u/OlivTheFrog Apr 05 '26
Cet ligne de commande fonctionne parfaitement bien. Tu dois avoir un caractère qui gène en début de ligne.
Nota : j'ai exécuté la ligne en RunAsAdmin. In normal Mode, I've a Access Denied.
regards
2
u/ravensgc_5 Apr 05 '26
Some devices you can't get it for. I ran into the same issue. I can get CPU temperature for the Dell models at work but I can't for HP and Lenovo.
2
u/AbfSailor Apr 06 '26
Out of curiosity... can HWiNFO see the temps and sensor data on your target machine?
https://www.hwinfo.com/
2
u/Jay_Nitzel Apr 06 '26
Not all computers have the same WMI classes available, especially when it comes to classes that depend on the hardware.
It might be easier for you to visualize which classes are available by using a tool like WMI Explorer: https://github.com/vinaypamnani/wmie/releases
0
u/beardinfo Apr 05 '26
Try this script
Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace root/wmi | Where-Object CurrentTemperature -gt 0 | Sort-Object CurrentTemperature -Descending | Select-Object -First 1 | Select-Object InstanceName, @{Name = 'Fahrenheit'; Expression = { [math]::Round((($_.CurrentTemperature / 10 - 273.15) * 9 / 5) + 32, 1) } }
-6
u/Mskews Apr 05 '26
Think OEM might be blocking it.
4
u/[deleted] Apr 05 '26
[removed] — view removed comment