I wants to monitor storage controller driver version.
I have created below script for the same.
$StorageDriverVersion = ((Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion | Where {$_.DriverVersion -like"*6.600.21.8*"}).StorageDriverVersion)
write-host "Statistic: $StorageDriverVersion"
But I have an output as "NaN".
Kindly suggest the better script for the same.