I am, admittedly, very new to the whole WMI "thing". This "thing" is quite overwhelming and I'm not finding an answer to the question that I have at this point. I've found the best information for the drives in my system using Win32_DiskDrive. The PNPDeviceID field even seems to encode the Port # that the particular SATA drive is connected to for its HBA. However, how can I link a particular drive to its HBA? None of the fields in the Win32_DiskDrive class seem to contain this information. I know that it's attached to the Intel HBA on my MB. For example, the PNPDeviceID field for my boot disk:
PNPDeviceID IDE\DISKWDC_WD2500AAKS-00L9A0___________________0956____\6&C07A520&0&0.1.0
It's interesting to me that the WMI classes identify this drive as an IDE drive since it's SATA, but I don't much care about that. What's more interesting is, how do I map this drive to its HBA? Is there a WMI class that has the particular field I'm interested in?
As an additional question, in the above text, how do I interpret the values after that second \ character?