Last active
June 15, 2017 08:51
-
-
Save g3rhard/0da5c0005daeaefcec4d2b612b209c58 to your computer and use it in GitHub Desktop.
Get temperature with OpenHardwareMonitor (http://openhardwaremonitor.org/) and Powershell and WMI
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
$temp = get-wmiobject -namespace root\OpenHardwareMonitor -query 'select Value from Sensor WHERE Identifier LIKE "/intelcpu/0/temperature/0"' | |
echo $temp.value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get all WMI objects and values with OpenHardwareMonitor
get-wmiobject -namespace root\OpenHardwareMonitor -query 'select * from Sensor'