SELECT DiskBytesPerSec FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk WHERE Name = "C:"In general, if you need to read a Windows performance counter value, you should
- Find the corresponding Win32_PerfFormattedData-derived WMI class: http://msdn.microsoft.com/en-us/library/aa392397 http://msdn.microsoft.com/en-us/library/aa394253
- Choose the needed class property (properties correspond to counters). For example, properties of Win32_PerfFormattedData_PerfDisk_LogicalDisk class can be found at: http://msdn.microsoft.com/en-us/library/aa394261
- Construct the WMI Query as
SELECT <property name> FROM WHERE Name = <instance name>
Note: WHERE clause is required if there are several instances (e.g. if several logical disks are configured)