
In the Run box, type ' cmd ' and press Enter to open Command Prompt. # This script is distributed under the GPL v2 license. If you also want to use commands to check hard drive space, please refer to the following steps: Press ' Windows + R ' keys simultaneously to open Run. Check HDD/SSD failures with chkdsk From My Computer You can right-click on Computer to run the chkdsk utility. # check_mk has this privileges and therefore this script must only be copied to your check_mk/plugins directory and you are done. Activate the diagnostic features of the hard drive to test the disk health on the basis of Self-monitoring, analysis and reporting technology or S.M.A.R.T. If diskdrive get status command output is OK, your HDD/SSD is healthy. # diskpart requires administrative privileges so this script must be executed under an administrative account if it is executed standalone.


Windows 7 disk health windows 8#
# or using the new PowerShell API introduced with Windows 8 (wrong target system as our customer uses a Windows 7 architecture). # The nicer solution would be using WMI (which does not contain the RAID status in the Status field of Win32_DiskDrive, Win32_LogicalDisk or Win32_Volume for unknown reason) # A simple PowerShell script for retrieving the RAID status of volumes with help of diskpart. If I wanted to check this disks health, I would use the following command: Get-Disk 5 Get-StorageReliabilit圜ounter You can see what the output looks like in Figure3. The "Fehlerfre" and "Fehlerhaf" in the script are German translations for result codes. Disks are automatically checked during your computers Automatic Maintenance procedures. I'm reproducing it here just in case the Gist goes away, like the target on the accepted answer Microsoft redesigned how disk checks are performed in Windows 8.
Windows 7 disk health windows 10#
I tested it on a Windows 10 software raid and a Dell PERC H700 hardware raid on Server 2016. Here is a Powershell script to monitor the health of RAID arrays on Windows from at
