Q: How can I check the health of my disks using PowerShell?
A: Windows actually has visibility into health of disks and can get different information based on the information exposed by the disks. My favorite commands are the following:
Get-PhysicalDisk | Sort Size | FT FriendlyName, Size, MediaType, SpindleSpeed, HealthStatus, OperationalStatus -AutoSize
Get-PhysicalDisk | Get-StorageReliabilityCounter | ft deviceid, temperature, wear -AutoSize
Note that in the previous command, the wear value shows you the overall health of your SSD drives. 0 is best, 100 is worst. This can help track how much longer your SSD drives will last!