WMI Trigger

See Also

Introduction to Triggers, Available Triggers, Using AMTrigger, Setting a WMI Trigger


Starts a task when a WQL (WMI Query Language) query executed on the agent machine returns true or more than 0 rows. Queries built using WQL are used to manage and control the WMI Service.   

WMI (Windows Management Instrumentation) is a technology built into Windows operating systems that provide direct access to managed resources on a system and allows components and devices in enterprise environments (i.e. hard disks, network/video adapters, BIOS, CPU and Windows components) to be centrally administered and controlled. WMI can be used to obtain information about such devices or to make configuration changes to them.

Practical Usage

Normally used by Network Managers or Systems Administrators to monitor for common issues to occur on various system and network components/devices and execute a task to resolve such problems in case they occur.


General Tab


Specifies the WMI query that should be executed. An example WQL is:


select IDProcess from Win32_PerfRawData_PerfProc_Process where name='iexplore'


The above query will monitor for the process iexplore to start.



Specifies the WMI namespace to execute the query under (i.e. root\CIMV2)


Use local computer

Enable this option to monitor for queries on the local machine.


Use remote computer

Enable this option to monitor for queries on a remote machine. If Use remote conputer is enabled, the computer name, IP address or host name of the remote machine must be entered in the provided text-box.


Use specified user

Enable this option if a specified username/password is required to connect to an Agent. If Use specified user is enabled, a valid username and password must be entered in the provided Username and Password text-boxes.


Polling interval

Specifies how often this trigger monitors for the resource value. The polling interval is the maximum amount of elapsed time (in seconds) before each status check. The default value is 1 second.

Behavior Tab

Trigger on startup if condition is true

If enabled, the system will act upon conditions that already exist upon startup of the current trigger. For example, if the Notepad window is already open on the desktop, a newly created Window trigger set to monitor for the existence of a Notepad window will trigger the task as a result. If disabled, the trigger will ignore the open Notepad window upon startup.

Trigger after the condition has been met 'X' times.

If enabled, specifies how many times the trigger condition must be met before the task is started (disabled by default). This parameter is available in all triggers except the Schedule Trigger.

AMTrigger Parameters

When this trigger is activated, it automatically passes the "AMTrigger" object to the task. AMTrigger can be used within a task to determine whether or not the task was started by a trigger, which trigger started the task, when the trigger was activated and other trigger related properties. For more details, see Using AMTrigger.

Common AMTrigger Fields

Every instance of AMTrigger populates a list of common fields which are described in the table below.


Data Type

Return Value



Returns the name of the event or condition that triggered the task. Each event or condition contains a unique name. For this trigger, the value is always AMWMITRIGGER.



Returns the name of the managed task that the trigger was attached to. Useful to determine the responsible task when two managed tasks point to the same AML file.



Returns the date and time when the trigger occurred.



Returns the machine name where the trigger occurred.



If the workstation was locked when the trigger occurred, the value returned is 1. Otherwise, it will be 0.



If the workstation was logged off when the trigger occurred, the value returned is 1. Otherwise, it will be 0.



Returns a verbose set of information about the triggered event or condition in AML (AutoMate Markup Language) format.


Specific AMTrigger Fields

The AMTrigger fields listed in the table below are specific only to the WMI trigger.


Data Type

Return Value



Specifies the results returned by the Agent.

NOTE: A full list of AMTrigger objects exclusive to each trigger can be viewed from the Expression Builder by expanding Objects -> Triggers and selecting the desired trigger.

See Also

All Available Triggers

Using AMTrigger

Setting a WMI Watcher Trigger

About Triggers