Yanshof
Yanshof

Reputation: 9926

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 ?

Upvotes: 0

Views: 281

Answers (1)

Robert Greiner
Robert Greiner

Reputation: 29722

Get-WMIObject -Class Win32_DiskDrive | Select Caption

You can pull the drive type from the resulting output.

Upvotes: 3

Related Questions