You can use WMI from client applications and scripts. It provides an infrastructure that makes it easy to both discover and perform management tasks. In addition, you can add to the set of possible management tasks by creating your own WMI providers.
The following topics are discussed in this section:
The following procedure describes how to obtain data from WMI by writing a script or application.
To obtain data from WMI by writing a script or application
You can view or manipulate WMI data in many languages. The following table lists the topics that describe how to use the scripting and application languages to obtain data.
Start with Creating a WMI Script.
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
Start with Creating Active Server Pages for WMI.
Start with Creating a WMI Application Using C++ and WMI C++ Application Examples (contains examples).
For more information, see Connecting to WMI on a Remote Computer.
For more information, see Manipulating Class and Instance Information and Querying with WQL.
For more information, see Modifying the System Registry.
For more information, see Monitoring Events and Receiving a WMI Event.
The system performance library counters are converted to WMI classes. For more information, see Monitoring Performance Data.
The following procedure describes how to supply data to WMI by writing a provider.
To supply data to WMI by writing a provider
You cannot write a WMI provider in script or Visual Basic. However, you can take several other approaches to writing a WMI COM provider:
This approach creates an unmanaged COM provider. For more information, see Adding a WMI Instance Provider and Adding a WMI Event Provider.
This approach creates an unmanaged COM provider.
This approach creates a managed code provider. Managed code providers can be written in any .NET Framework language, are simpler to write than WMI COM providers, and can obtain data from the WMI CIM-based classes such as Win32 Classes. However, the .NET Framework WMI provider has some limitations. For more information, see Managing Applications Using WMI.
The provider framework has been superseded by the WMI ATL wizards, using COM directly, or .NET Framework providers. Creating a WMI COM provider with the provider framework classes is no longer recommended. The following table lists the topics that describe how to use COM or .NET Framework providers.
The following topics provide information about using WMI to monitor and control enterprise components.
Send comments about this topic to Microsoft
Build date: 11/3/2009