Contact Form

Name

Email *

Message *

Cari Blog Ini

Heres How To Use Wmi To Determine Disk Type

Here's How to Use WMI to Determine Disk Type

In the post I use C# with WMI (Windows Management Instrumentation) to programmatically determine which disk in a Windows computer are Solid State.

The best way I found was using the MSFT_PhysicalDisk in the ROOTmicrosoftwindowsstorage namespace with WMI.

Is there a method that allows us to get its letter and physical type for each driver? That is get one array where something like this will be:

This form of ManagementObject using DeviceID assignment works. Get number of logical drives on given physical disk..


Comments