Managed Object Format (MOF) files and WMI

Windows Management Instrumentation (WMI) classes represent the different types of management information and capabilities exposed by WMI. There are thousands of WMI classes available, depending on the version of Windows, the installed software and hardware, and the configuration of the computer.

Here is an example of a Managed Object Format (MOF) file that defines a simple WMI class:

[Dynamic, Provider("MyProvider"), Description("My WMI Class")]
class MyWMI_Class
{
  [key] string Property1;
  uint32 Property2;
  boolean Property3;
  string Property4;
};
MOF

This example defines a WMI class called “MyWMI_Class” with four properties: Property1 (a string key), Property2 (a 32-bit unsigned integer), Property3 (a boolean), and Property4 (a string). The class is marked as “Dynamic” and is associated with a provider named “MyProvider”.

Here is a list of some common WMI classes that are available on most Windows systems:

  • Win32_OperatingSystem: Represents the operating system on a computer.
  • Win32_Process: Represents a process on a computer.
  • Win32_Service: Represents a service on a computer.
  • Win32_LogicalDisk: Represents a logical disk on a computer.
  • Win32_NetworkAdapter: Represents a network adapter on a computer.
  • Win32_Printer: Represents a printer on a computer.
  • Win32_PhysicalMemory: Represents a physical memory device on a computer.
  • Win32_BIOS: Represents the BIOS of a computer.
  • Win32_ComputerSystem: Represents the computer system as a whole.
  • Win32_Processor: Represents a processor on a computer.

You can find more information about these and other WMI classes in the WMI documentation and by exploring the WMI namespace on your computer. You can also use tools like WMIC or PowerShell to query and enumerate the available WMI classes and their properties.