I'm making C# tools that, for various reasons, I want to be able to detect SSDs.
I've been trying to uses WMI to get the relevant info, perhaps using it to get the hardware serial numbers from Win32_PhysicalM edia and extrapolating which drives are SSDs from there (a drive with an Intel serial is going to be an SSD, for example) but I was only able to produce a list of drive serials, when really I want to be able to link the logical drive to the hardware, so for example to be able to check the serial number of the drive C:\ is on. I've also been looking at finding other info with WMI that I can do this with, but I haven't yet found a surefire way to get this done, is it even possible? A lot of WMI fields I tried looking at seem to be empty.
I've been trying to uses WMI to get the relevant info, perhaps using it to get the hardware serial numbers from Win32_PhysicalM edia and extrapolating which drives are SSDs from there (a drive with an Intel serial is going to be an SSD, for example) but I was only able to produce a list of drive serials, when really I want to be able to link the logical drive to the hardware, so for example to be able to check the serial number of the drive C:\ is on. I've also been looking at finding other info with WMI that I can do this with, but I haven't yet found a surefire way to get this done, is it even possible? A lot of WMI fields I tried looking at seem to be empty.
Comment