For all of those who don't know what SMART is, let me explain :
For this script I have used the freeware tool SMART.EXE from BeyondLogic.
What is S.M.A.R.T. technology for hard drives?
S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is implemented into all of the modern hard disks. A special program inside the disk constantly keeps tracking the condition of a range of the vital parameters: driver, disk heads, surface state, electronics, etc. At the present time, S.M.A.R.T. technology is able to predict up to 70% of all hard disk problems! However, to use this information, you firstly have to retrieve it from the disk and analyze it. This is one of the Active SMART program's tasks
It has a very small footprint and therefor a good combination with AutoIT.
Download it here SMART Tool
Furthermore I combined it with SQLite DB, to log all the analysis information.
In order to be able to see the trend of the drive's health over time.
Here is the script.
SMART.au3 2.13KB 1693 downloads
For educational reasons I have used an in "Memory DB", meaning the data want be saved.
The output will be save to the SciTE console.
I hope that this helps you all to prevent loosing the valuable scripts as a cause of a crash.
Added a new version which in not depending on an external EXE file, and is able to retrieve remote data from a Harddisk.
SMART_WMI.au3 9.9KB 2374 downloads
Edited by ptrex, 14 September 2012 - 09:43 AM.