How to determine what drives are SSDs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Maw
    New Member
    • Jul 2010
    • 1

    How to determine what drives are SSDs

    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.
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    Instead of Win32_PhysicalM edia I would take a look at the Win32_DiskDrive Class or the Win32_LogicalDi sk Class

    Comment

    Working...