Many manufacturers expose wear level info for SSDs installed in servers.
It would be very useful to pull those values in to SAM along with the standard hardware health info that is already being pulled.
Shouldn't be too hard to do.
Single disk, as on my laptop:
$disk = Get-PhysicalDisk
$name = $disk.FriendlyName
$health = $disk.HealthStatus
$extra = Get-PhysicalDisk| Get-StorageReliabilityCounter
$wear = $extra.Wear
Write-Host "Message: $name is reporting $health Wear:$wear%"
Write-Host "Statistic: $wear"
Or multiple disks, up to 10 anyway, remembering that SAM only allows 10 return values from a PowerShell script:
$disks = Get-PhysicalDisk
ForEach ($disk in $disks)
{
$id = $disk.DeviceId
$extra = Get-PhysicalDisk| Get-StorageReliabilityCounter | Where {$_.DeviceId -eq $id }
$message = "Message." + $id
$stat = "Statistic." +$id
Write-Host "$message : $name $health wear = $wear %"
Write-Host "$stat : $wear"
}
Guess who's having a quiet day.