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: 16 years ago
Size: 753 bytes
 

Contents

Class file image Download
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'");