I trying to get all the SATA hardware devices that connected.
How can i do it ?
Get-WMIObject -Class Win32_DiskDrive | Select Caption
You can pull the drive type from the resulting output.