Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
WMI Classes
WMI Classes

This section provides WMI class and reference page information. For more information about how to retrieve class or instance data, see Manipulating Class and Instance Information. The following table lists, describes, and provides links to specific WMI class information. For more information and script code examples of using WMI classes to obtain a variety of operating system and hardware data, see WMI Tasks for Scripts and Applications. For examples in C++, see WMI C++ Application Examples. Connecting to WMI on a Remote Computer shows how to obtain remote data.

SectionDescription
Win32 ClassesSchema classes included in the root\cimv2 namespace. These are the primary classes for working with Windows-based operating systems.
WMI Registry ClassesClasses that manipulate registry keys and values. You can use these classes to change, add, or delete registry keys and values.
WMI System ClassesPredefined classes that are included in every namespace in the Windows Management Instrumentation (WMI) core. You can recognize a WMI system class because the name begins with a double underscore (__). These classes provide much of the basic functionality for WMI. The WMI system classes are similar in purpose to the system tables in SQL server.
Monitor Display ClassesWMI Monitor Display classes contain data supplied by the WDM Provider that provide data about display monitors. The classes are defined in Wmicore.mof and are located in the root\wmi namespace.
Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0:  These classes are not available.
IPMI ClassesClasses that supply data from the Intelligent Platform Management Interface (IPMI) provider when appropriate baseboard management controller (BMC) hardware is available.
Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0:  These classes are not available.
MSFT ClassesOther Microsoft classes that offer the means to manipulate several operating system features, such as remote events and policy extensions. The WMI Troubleshooting classes are MSFT classes that provide data about WMI operations.
CIM ClassesCommon Information Model (CIM) schema classes. If you want to write your own WMI classes then you can inherit from one or more of these classes. The WMI Win32 Classes inherit from the CIM classes.
Standard Consumer ClassesA set of WMI event consumers which trigger an action upon receipt of an arbitrary event. For more information, see Monitoring Events.
MSMCA ClassesClasses that offer a means to manipulate and describe a system event. These classes are included in the operating system.
WMI C++ ClassesComplete listing of the WMI C++ Provider Framework classes. The Provider Framework classes are obsolete and not recommended. For alternative ways to write a WMI COM provider or a WMI provider that uses the System.Management namespace in the .NET Framework, see Using WMI.

Document Conventions for a WMI Class Reference Page

This section identifies and describes the document conventions for a WMI class reference page.

A typical reference page contains a syntax block, methods table, and a properties list.

  • Syntax block

    A simplified version of MOF code that includes the class name, parent class (if any), and class properties, in alphabetical order, with data types.

  • Methods table

    If a class has methods, the methods are listed in the table immediately following the syntax block. Each implemented method is linked to a reference page.

  • Properties list

    Each class property is listed with a data type, access type (read-only or read/write), qualifiers, and a description of the property.

Syntax block

class Win32_xyz : CIM_xyz 
{
  uint16 abc  ;
  string def  ;
};

Methods table

Win32_xyz methodsDescription
SomeMethodBrief description of what the method does.

Properties list

abc

Data type: uint16

Access type: Shows whether you have read/write or read-only access to this property.

Qualifiers: If present, shows the qualifiers for the property. For example, KeyOverride.

Describes the property and provides inheritance information for the property. For example, this property is inherited from CIM_xyz. There is a link to the parent class if Microsoft provides an implementation of that class. However, the CIM classes are not available.

def

Data type: string

Access type: Read-only

Description of the property.

Remarks

Gives more information about the class, if applicable. Also provides derivation information, if applicable.

See Also

WMI Reference


Send comments about this topic to Microsoft

Build date: 9/29/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Accessing WMI from PowerShell      Thomas Lee   |   Edit   |  

You can access and manipulate WMI objects using PowerShell. PowerShell's GET-WMIObject provides access to all the classes on local or remote computer.

PowerShell's Get-WMIObject cmdlet enables you to specify the namespace and class name of the managed object you with to utilise. Once you have obtained the object, you can access its properties and methods - just like any other .NET object. To access WMI objects on a remote system, you need to specify credentials (you can use get-credential cmdlet to create a PSCredential object you can provide to Get-WMIObject).

Some of the WMI Classes are decorated with PoweShell samples.

Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker