PHP Classes

File: doc.txt

Recommend this page to a friend!
  Classes of Zsolt Munoz  >  SimpleWMI  >  doc.txt  >  Download  
File: doc.txt
Role: Documentation
Content type: text/plain
Description: Document
Class: SimpleWMI
Access Windows resources using WMI objects
Author: By
Last change:
Date: 13 years ago
Size: 753 bytes


Class file image Download
For more references around this please visit

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 = ''");
For more information send a message to info at phpclasses dot org.