About Configuration Manager WMI Programming
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
Programming the Microsoft System Center Configuration Manager 2007 client Windows Management Instrumentation (WMI) provider differs according to the programming language you use.
C#
If you are using C#, you should use the System.Management namespace, which provides access to a rich set of management information and management events about the system, devices, and applications that are instrumented to the WMI infrastructure.
Note
The managed Configuration Manager 2007 library is for use with a Configuration Manager 2007 site server and cannot be used to access client WMI namespaces.
For more information about connecting to the Configuration Manager client WMI namespace by using the System.Management namespace, see How to Connect to the Configuration Manager Client WMI Namespace by Using System.Management.
For more information about using Configuration Manager client WMI namespace objects by using the System.Management namespace, see How to Read a WMI Object by Using System.Management.
For more information about using the System.Management namespace, see https://go.microsoft.com/fwlink/?LinkID=84308.
VBScript
If you are using VBScript you access and use Configuration Manager client WMI objects by using the same coding techniques that are used for accessing other WMI objects, including the Configuration Manager WMI objects. For more information see the https://go.microsoft.com/fwlink/?LinkId=43950.
Client WMI Namespace
The Configuration Manager client WMI namespace begins at \\<client>\root\ccm. For example, root\ccm contains the SMS_Client class that can be used to get and set client information.
See Also
Concepts
Configuration Manager Programming Fundamentals
How to Call a WMI Class Method by Using System.Management
How to Connect to the Configuration Manager Client WMI Namespace by Using System.Management
How to Perform an Asynchronous Query by Using System.Management
How to Perform a Synchronous Query by Using System.Management
How to Read a WMI Object by Using System.Management
Other Resources
https://go.microsoft.com/fwlink/?LinkId=43950
https://go.microsoft.com/fwlink/?LinkId=111708