Is there any command line tool where I can detect the SATA mode (IDE, AHCI, RAID) set in BIOS? Preferably able to run on Windows PE? I tried using Vista WinPE with diskpart command to detect the disk mode by using select disk 0, detail disk and was able to detect the sata mode of the disk. It works fine. But if I set the SATA mode in the BIOS to RAID and only plug in one HDD, when using diskpart, it will only detect the disk as ATA (or AHCI) but not RAID (since RAID requires more than one HDD). So, this method doesn't work in the mentioned event above. Hence, I need to look for a tool which is able to detect what is set in the BIOS instead of the disk. Any idea?