Location: PHPKode > scripts > Easy WMI > easy-wmi/doc.txt
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

// Create Selection

// Set Search Critria
$test->setWhere("Name = 'Info'");

// Run Selection

// 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 = ''");
Return current item: Easy WMI