It's getting hot in here. So Check Your Computer's Temperature with Powershell

2020-04-09 03:43:00 +0000 - Written by Carl Burks

If you use Windows and haven’t heard of “Windows Management Instrumentation” then you are probably a normal human being. If you have, then you don’t need this article.

If you use Linux then this won’t help you, and you can easily find other articles about how to get the temperature from your computer.

Here is a nice Powershell oneliner for getting the temperature:

[System.Management.ManagementObjectSearcher]::new("root\WMI","Select * From MSAcpi_ThermalZoneTemperature").Get() |%{($_.CurrentTemperature -2732)/10 }

If you like Powershell and you have access to Github here is a link to my repo with some other Powershell goodies:

PowerShell Functions