From c8358a9d3c86c2af22eee468b389101d9b8f1d13 Mon Sep 17 00:00:00 2001 From: jhg03a Date: Wed, 15 Oct 2014 15:14:52 -0500 Subject: [PATCH] Added some sanity checks to remove any errors wmic might produce, yet still work --- wmi.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/wmi.php b/wmi.php index 8a60b76..d90ef62 100755 --- a/wmi.php +++ b/wmi.php @@ -160,6 +160,29 @@ function display_help() { exit($execstatus); } +// Chomp any errors that wmic might have thrown, but still worked +$classindex = -1; +for($i=0;$i 0) {