Skip to content

Instantly share code, notes, and snippets.

@g3rhard
Last active June 15, 2017 08:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save g3rhard/0da5c0005daeaefcec4d2b612b209c58 to your computer and use it in GitHub Desktop.
Get temperature with OpenHardwareMonitor (http://openhardwaremonitor.org/) and Powershell and WMI
$temp = get-wmiobject -namespace root\OpenHardwareMonitor -query 'select Value from Sensor WHERE Identifier LIKE "/intelcpu/0/temperature/0"'
echo $temp.value
@g3rhard
Copy link
Author

g3rhard commented Jun 15, 2017

Get all WMI objects and values with OpenHardwareMonitor
get-wmiobject -namespace root\OpenHardwareMonitor -query 'select * from Sensor'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment