About Configuration Manager WMI Programming

 

Updated: November 1, 2013

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

Programming the System Center 2012 R2 Configuration Manager client Windows Management Instrumentation (WMI) provider differs according to the programming language you use.

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.

System_CAPS_noteNote

The managed System Center 2012 R2 Configuration Manager library is for use with a System Center 2012 R2 Configuration Manager 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 System.Management Namespace.

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 Windows Management Instrumentation.

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.

Show: