Last active
June 15, 2017 08:51
Star
You must be signed in to star a gist
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'