How can I use C# To read extended smart data?

后端 未结 1 1675
别跟我提以往
别跟我提以往 2021-01-05 20:33

I know a bit of C++ and Java, but am wanting to learn c# on my own. To mess with, I\'m trying to read the SMART data of my hard drive. I have this C# Code, but I do not know

相关标签:
1条回答
  • 2021-01-05 21:12

    Note that not all SMART HDD info can be obtained from a single WMI query.

    You need to query all the following to determine the current value, worst value, threshold, drive status and attribute status:

    • Win32_DiskDrive
    • MSStorageDriver_FailurePredictStatus
    • MSStorageDriver_FailurePredictData
    • MSStorageDriver_FailurePredictThresholds

    For a comprehensive solution in C#/WMI detailing all relevant SMART HDD info see this solution http://www.know24.net/blog/C+WMI+HDD+SMART+Information.aspx (please note: I own this development blog)

    0 讨论(0)
提交回复
热议问题