Advertisement
Guest User

Untitled

a guest
Apr 19th, 2016
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. @echo off
  2. "C:\Program Files (x86)\cmdow-1.4.8\bin\Release\cmdow.exe" @ /hid
  3. call "C:\Program Files (x86)\OpenHardwareMonitor\boot.cmd"
  4. :loop
  5. cd %temp%
  6. set PROBLEM=
  7.  
  8. wmic /namespace:\\root\OpenHardwareMonitor path Sensor where "SensorType='Fan' and Value<100" get Name,Identifier,Value 2>&1 | find "No Instance(s) Available."
  9. if .%ERRORLEVEL%.==.1. set PROBLEM=Fan
  10.  
  11. wmic /namespace:\\root\OpenHardwareMonitor path Sensor where "SensorType='Temperature' and Value>60 and Name='System'" get Name,Identifier,Value 2>&1 | find "No Instance(s) Available."
  12. if .%ERRORLEVEL%.==.1. set PROBLEM=System
  13.  
  14. wmic /namespace:\\root\OpenHardwareMonitor path Sensor where "SensorType='Temperature' and Value>50 and Name='Temperature'" get Name,Identifier,Value 2>&1 | find "No Instance(s) Available."
  15. if .%ERRORLEVEL%.==.1. set PROBLEM=Hdd
  16.  
  17. wmic /namespace:\\root\OpenHardwareMonitor path Sensor where "SensorType='Temperature' and Value>85 and Name like 'CPU%'" get Name,Identifier,Value 2>&1 | find "No Instance(s) Available."
  18. if .%ERRORLEVEL%.==.1. set PROBLEM=CPU
  19.  
  20. if .%PROBLEM%.==.. goto done
  21. if exist %PROBLEM%.dead goto done
  22.  
  23. echo %computername% %PROBLEM% high temp at %date% %time% >%temp%\mon.txt
  24. echo. >>%temp%\mon.txt
  25. wmic /namespace:\\root\OpenHardwareMonitor path Sensor where "(SensorType='Temperature' or SensorType='Fan') and Value!=124.5" get Name,Identifier,Value 2>&1 |sort /r >>%temp%\mon.txt
  26.  
  27. "C:\Program Files (x86)\blat3212\full\blat.exe" %temp%\mon.txt -to email@domain.ru -f hyperv@home.local -s "%PROBLEM%" -server 192.168.1.2
  28.  
  29. ren %temp%\mon.txt %PROBLEM%.dead
  30.  
  31. :done
  32. timeout 60
  33. goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement