0

I am trying to get the hard disk media from Win32_DiskDrive API. However, it returns me all SSD and HDD drives. I want to get only the HDD disks. Is it supported by Win32_DiskDrive API? Below is the query forget all hard disk media.

SELECT * FROM Win32_DiskDrive WHERE MediaType = "Fixed hard disk media" 

I've tried the Get-PhysicalDisk in Powershell, with which we can filter HDD drives, but I want it as part of the WQL query. Thanks in advance.

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.