For more references around this please visit http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx
This is just a simple document around running the EasyWMI class and how to use it.
// Create new Instance of the EasyADSI Class
$test = new EasyWMI('servername','user','password','namespace','domain');
// Choose classname
$test->useTable('classname');
// Create Selection
$test->setSelection('*');
// Set Search Critria
$test->setWhere("Name = 'Info'");
// Run Selection
$test->select();
// Get Record Set in an Array
$array = $test->fetchAssoc();
// Get Field Names in an array
$field = $test->fetchFieldName();
// Free form query
$test->setQuery("SELECT * FROM Win32_NetworkAdapter WHERE IPAddress = '1.2.3.4'");
|