Skip to content

Instantly share code, notes, and snippets.

@stylefish
Last active January 4, 2018 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stylefish/de1baf1712e5c653689a5846b6602e37 to your computer and use it in GitHub Desktop.
Save stylefish/de1baf1712e5c653689a5846b6602e37 to your computer and use it in GitHub Desktop.
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