how to monitor cpu core temperature using powershell
# Needs admin privileges and the .NET OpenHardwareMonitorLib.dll
#Requires -RunAsAdministrator
CLS
Add-Type -Path "C:\OpenHardwareMonitor\OpenHardwareMonitorLib.dll"
$Comp = New-Object -TypeName OpenHardwareMonitor.Hardware.Computer
$Comp.Open()
$Comp.CPUEnabled = $true
$Comp.RAMEnabled = $true
$Comp.MainboardEnabled = $true
$Comp.FanControllerEnabled = $true
$Comp.GPUEnabled = $true
$Comp.HDDEnabled = $true
ForEach ($HW in $Comp.Hardware) {
$HW.Update()
$hw.HardwareType.ToString() + ' - ' + $hw.name.ToString()
If ( $hw.HardwareType -eq "CPU"){
ForEach ($Sensor in $HW.Sensors) {
If ($Sensor.SensorType -eq "Temperature"){
$Sensor.Name + ' - Temp : ' + $Sensor.Value.ToString() + ' C - Min. : ' + $Sensor.Min.ToString() + ' C - Max : ' + $Sensor.Max.ToString() + ' C'
}
}
}
# $hw.Sensors
$hw.SubHardware
}
$Comp.Close()
Also in C++:
- More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.
- linux convert files in folder
- Pearson correlation
- pyinstaller
- docker compose install centos 8
- clone a particular branch
- supervisord install ubuntu
- git sync branches
- install git linux
- install composer on linux
- vue cli ui
- heroku logs
- restart ubuntu 18.04 server
- react native reactotron bug
- pip install catboost
- - laravel/installer is locked to version v3.2.0 and an update of this package was not requested.
- remove port iptables
- How to Install Julia on Ubuntu
- Sync your Git Fork to the Original Repo
- install brew on mac
- gitaarles amsterdam
- install mcrypt extension centos 7
- git check difference between local and remote
- ssh file transfer putty