Script determines if smartctl.exe is present. If it is, runs it against all hard drives on the system and outputs the result. On the chance there is a warning, an Alert is triggered and an email is sent.
Prompts if either y or n for failure Emails. Script then checks WMI root\cimv2:Win32_DiskDrive.Status. If OK then script writes to script log. If NOT OK then Email is sent if y at prompt was selected, script also writes failures to script log.