WMI Current Hard Drive Usage

Hello,

Why does the result always return 0 ?

Thank you.

if w.query(“WQL”, “SELECT PercentIdleTime from Win32_PerfFormattedData_PerfDisk_PhysicalDisk where name=‘_Total’”) then
system.DebugLog(str(w.GetPropertyInteger(“PercentIdleTime”)))
end if

Post a complete usable sample

1 Like