diff --git a/wmi.netstats.php b/wmi.netstats.php index 37f8f98..c59113f 100755 --- a/wmi.netstats.php +++ b/wmi.netstats.php @@ -108,6 +108,28 @@ function wmic_call($in_host, $in_cred, $in_class, $in_namespace, $in_columns, $i echo "WMI Client Output: " . implode("\n", $wmiout) . "\n"; exit($execstatus); } + // Chomp any errors that wmic might have thrown, but still worked + $classindex = -1; + for($i=0;$i