Search code examples
windowswinapiwdk

Is there an API call to get all the sata hardware devices ?


I trying to get all the SATA hardware devices that connected.

How can i do it ?


Solution

  • Get-WMIObject -Class Win32_DiskDrive | Select Caption
    

    You can pull the drive type from the resulting output.