Last active
January 4, 2018 17:20
-
-
Save stylefish/de1baf1712e5c653689a5846b6602e37 to your computer and use it in GitHub Desktop.
OneLine PowerShell Script to Output Processor Core Temperatures in Celsius
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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