Retrieve health information e.g. SMART, remaining live, reallocated sectors etc for all types of HDD, SSD, NvME etc

Darren Rose 261 Reputation points
2025-03-09T13:56:01.39+00:00

Any suggestions on reliable solutions to retrieve health information e.g. SMART, remaining live, reallocated sectors etc for all types of HDD, SSD, NvME etc

Tried smartmontools but doesn't work for a lot of NvME drives as get "IOCTL_STORAGE_QUERY_PROPERTY(NVMe) failed, Error=1" error

CrystalDiskInfo seems to work better, but source is in C++ I believe and I am looking for a way to do this from a VB or C# app.

Also tried WMI but doesn't seem to contain much useful info for new drives.

Any thoughts please?

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,794 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.