Skip to content

Instantly share code, notes, and snippets.

@stylefish stylefish/cputemp.ps1
Last active Jan 4, 2018

Embed
What would you like to do?
OneLine PowerShell Script to Output Processor Core Temperatures in Celsius
# must be run as administrator, will fail if unsupported by bios
Get-WmiObject MSAcpi_ThermalZoneTemperature -namespace "root/wmi" | % { "Temp $($_.InstanceName.Replace('ACPI\ThermalZone\', '')): $(($_.CurrentTemperature * 10 - 27315) / 100)°C" }
# sample output:
# Temp TZ00_0: 27.85C
# Temp TZ01_0: 29.85C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.