Shortcut Menu

Skip

Main Navigation

Choose your language


ActiveXperts Network Monitor
Monitor servers, workstations, devices and applications in your network

Quicklinks


WMI Samples

The foundations for Manageability in Windows XP/Windows 2000 and Windows Millennium Edition/Windows 98 are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).

ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.

On this site, you can find many WMI samples. The samples are organizaed in groups:

  • Computer Hardware samples - Samples are based on WMI Computer Hardware Classes; The Computer System Hardware category groups classes that represent hardware related objects. Examples include input devices, hard disks, expansion cards, video devices, networking devices, and system power;
  • Operating System samples - Samples are based on WMI Operating System Classes; The Operating System category groups classes that represent operating system related objects. They denote the various configurations and settings that define a computing environment. Examples include the boot configuration, COM settings, desktop environment settings, drivers, security settings, user settings, and registry settings;
  • Applications samples - Samples are based on WMI Installed Applications Classes; The Installed applications category groups classes that represent software-related objects. Access to these objects is supported by Microsoft® Windows Installer technology. Examples of objects in this category are installed products, file specifications, registration actions, and so on;
  • Exchange 2000 samples - Samples are based on WMI Exhange 2000 Classes; To ensure that your server running Microsoft Exchange 2000 Server is running efficiently, you need to monitor it effectively. Monitoring should take place not only when there are problems, but should occur continuously as part of your maintenance program. These samples show how to monitor Exchange 2000 Server computers effectively in your organization;
  • Performance Counter Samples - Performance Counter classes allow scripting and program access to system performance data calculated by existing high-performance providers. System Monitor displays data from the WMI repository classes found in the root\cimv2 namespace. These classes must derive from Win32_PerfRawData. You can access this performance data programmatically from a script. The format of a performance counter class name indicates whether it is formatted or raw performance data, the performance library from which it was loaded, and the object it represents in the performance library. For example, the properties of the Win32_PerfFormattedData_PerfDisk_PhysicalDisk class represent the properties of the PhysicalDisk object in the PerfDisk performance library. Different versions of the Windows operating system have different sets of raw and formatted performance counter classes in the repository. Each class describes the Windows versions in which it is supported. All performance counter classes are derived from the abstract base class;
  • .NET Framework Performance Counter Samples - Performance Counter classes allow scripting and program access to system performance data calculated by existing high-performance providers. The .NET Framework has its own performance counters;
  • Connect to remote WMI computers - Samples that show how to connect to different computers with different credentials;
  • Asynchronous WMI calls - Asynchronous WMI operation sample.