Share via

How do I get exact CPU temps using CMD/WMIC?

Anonymous
2022-08-23T08:29:43+00:00

I am busy making a program to check what the CPU temperature is so that I can get notified and save my work in order to shut down the laptop and let it cool down. I started testing if this works and used this command (with admin privileges):

:start 

sleep 1 

cls 

for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do set /a "HunDegCel=(%%~A*10)-27315" 

echo %HunDegCel:~0,-2%.%HunDegCel:~-2% Degrees Celsius 

goto start 

pause 

The output text stayed at 27.85 Degrees Celsius

Apparently, this is the reading of an area on the motherboard, not the CPU. Would anyone know what I should use to get the reading and be able to use it as a variable? I'd prefer it to be for CMD, but it can also be for WMIC.

Laptop Specs:

Windows 8.1 64-bit (With Windows Resource Kit 2003 installed)

CPU: Intel Pentium N3520 @ 2.16GHz

Motherboard: Hewlett-Packard 2213

RAM: 4,00GB DDR3 @ 666MHz

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-08-23T08:42:20+00:00

    We deal with Home users in this Community, not writing Apps.

    I suggest: Visit Microsoft Q&A to post new questions.

    Cheers.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments