Detecting Storage Issues

by Sep 11, 2019

In Windows 10 and Windows Server 2016, PowerShell can access storage reliability data so you can find out whether there is something wrong with one of the attached storage drives. This requires Administrator privileges to execute:

 
PS> Get-PhysicalDisk | Get-StorageReliabilityCounter

DeviceId Temperature ReadErrorsUncorrected Wear PowerOnHours
-------- ----------- --------------------- ---- ------------
0                                          0                
1                                          0  
 

To see all available information, use Select-Object:

 
PS> Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object -Property *


(...)
DeviceId                : 0
FlushLatencyMax         : 104
LoadUnloadCycleCount    : 
LoadUnloadCycleCountMax : 
ManufactureDate         : 
PowerOnHours            : 
ReadErrorsCorrected     : 
ReadErrorsTotal         : 
ReadErrorsUncorrected   : 
ReadLatencyMax          : 1078
StartStopCycleCount     : 
StartStopCycleCountMax  : 
Temperature             : 1
TemperatureMax          : 1
Wear                    : 0
WriteErrorsCorrected    : 
WriteErrorsTotal        : 
WriteErrorsUncorrected  : 
WriteLatencyMax         : 1128
(...)
FlushLatencyMax         : 
LoadUnloadCycleCount    : 
LoadUnloadCycleCountMax : 
ManufactureDate         : 
PowerOnHours            : 
ReadErrorsCorrected     : 
ReadErrorsTotal         : 
ReadErrorsUncorrected   : 
ReadLatencyMax          : 46
StartStopCycleCount     : 
StartStopCycleCountMax  : 
Temperature             : 0
TemperatureMax          : 0
Wear                    : 0
WriteErrorsCorrected    : 
WriteErrorsTotal        : 
WriteErrorsUncorrected  : 
WriteLatencyMax         : 
PSComputerName          : 
(...) 
 

The detail and amount of returned data depends on your storage manufacturer and your drivers.


Twitter This Tip! ReTweet this Tip!