Jump to content
Hidix17

CPU and GPU temperature

Recommended Posts

Not sure if anyone else has a better approach but I did some Googling on this.  I don't think all PC's support this function.  If they do, it looks like you can get at it from the PowerShell.  This example will work from the command line and will state the temp in Kelvin (you can convert it) assuming your PC supports the function:

wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature

That should start you on the right track.  Also, take a look at >ScriptOMatic for AutoIt.  I did not see this API listed - but then again, it is not supported on my machine :-(

This example was to a batch file that converts it to Celsius:

@echo off
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

Source

JFish

Edited by Jfish

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...