Subscribe
Accepted Solution

Disk Stats for Hours running

I'm curious if there is a quick way to determine how long the disks have actually  been spinning.. I was kind of looking to see how long they've been spinning vs expected life of them

Thanks

Re: Disk Stats for Hours running

Storage show disk will display total power on time. I guess this comes close to what you ask.

Re: Disk Stats for Hours running

Ah, you kick started my brain... I found what I needed and the associated API I was looking for. 

Re: Disk Stats for Hours running

This did the trick -

get-nadisk | ? {$_.status -ne "partner" } | %  {

write-host "Name: " $_.name "`tDays Disk powered on:" ("{0:N0}" -f ( $_.poweronhours / 24 ))

}