Windows Management Instrumentation (WMI)

Windows Management Instrumentation (WMI) allows you to write scripts that configure performance settings and resolve performance issues. System performance is dependant on many factors and settings, and the amount of resources every service or process consumes. With WMI, you can write scripts that manage event logs, file systems, printers, processes, registry settings, scheduled tasks, security, services, shared folders, etc. WMI scripts can monitor and respond to entries in the event log, modifications to the file system or the registry, and other real-time operating system changes.

WMI allows you to access system management information and is designed to work across networks. It provides a consistent model of the managed environment and a WMI class for each manageable resource. A WMI class is a description of the properties of a managed resource and the actions that WMI can perform to manage that resource. A managed resource is any object such as, hardware, software, service or user account that can be managed by using WMI.

The scripts you write use the WMI scripting library. This library lets you work with WMI classes that correspond to managed resources such as disk drives, event logs, and installed software. You can use Windows Script Host (WSH), Microsoft Visual Basic Scripting Edition (VBScript), Microsoft Jscript, or scripting languages such as ActivePerl.

Note: You can stop the WMI service using services.msc console or the command line interface by typing net stop winmgmt, however, this also stops the Security Center and IP Helper services. When the WMI Service is stopped and you run a script or an application that requires WMI, the service automatically restarts.