Using the DISKPART command line DISKPART , I can get something called the “Location Path” that seems to give me what I need, you can view it using the detail disk command after selecting one of your disks in DISKPART .
It seems I can get this information programmatically through this class: MSFT_Disk
I am not sure how to get an instance of this class. I have several examples of using the ManagementObjectSearcher classes for WMI , but this method does not work for me, I am also not sure about the availability of MSFT_Disk in Windows 7, since the page mentions that it is for Windows 8.
Does anyone know a good way to get SATA channel information or the "location path" on disk?
source share