credential = '/etc/cacti/cactiwmi.pw'; // set your host to query $wmi->host = 'ComputerName'; // and slam out some queries $data = $wmi->execQuery('Win32_LogicalDisk',array('*')); // print out the data :) print_r($data); // now how about a filter? // lets have a look for the winvnc service on a machine and return only specific details $wmi->setFilter('Name','winvnc'); // exec the query with the array of details we want $vnc = $wmi->execQuery('Win32_Service',array('Status','State','Started','Name')); // print out the data! print_r($vnc) ?>