Get Fixed-Disk Health

JoeO
JoeO Member
edited January 24 in Solutions

Product Name: Get Fixed-Disk Health

Description : Simple procedure which reports the disk status of all fixed disks, based on the Win32_DiskDrive class. The "Status" reports the following values:

OK
Error
Degraded
Unknown
Pred Fail (Predicted Fail)
Starting
Stopping
Service
Stressed
NonRecover
No Contact
Lost Comm

Instructions :

Create a custom field to store the Disk Status value. I called mine "Disk Status". In the procedure im grabbing the status of all disks in the event of a failure. Alternatively, you could only retrieve the failed disk using the following PS.

Get-WmiObject Win32_DiskDrive | where {$_.MediaType -like 'fixed*' -and $_.status -ne 'Ok'} | Select-Object DeviceID,Model,Status | fl

Comments