WMI Queries

 

Displaying WMI Query Properties

 

Note: For General information about Hyena's Object Manager, click here.

 

The WMI Query Properties dialog can be displayed by either selecting Execute Query... from the main WMI object under any computer or WMI class, or by selecting File->Manage Object View->WMI Queries, then selecting the query class and query name to modify.

 

The WMI queries properties dialog shown here is used to create or modify the parameters for WMI queries. 

 

Using 'Where' Clauses

 

WMI can accept optional conditional clauses in queries.  Use the Edit button to display a larger field for long conditional statements.  Check the option to "Prompt for 'Where' clause..." to change the query 'Where' condition prior to execution.

 

Where Clause Examples:

 

Name = "Spooler"
State = "running"
FreeSpace < 409800
Started = TRUE
Mode = 3
StartMode = "manual" and State = "running"

 

Note: Text entered in a WHERE condition is not case-sensitive.  String data must be enclosed in quotations (ie, Name = "Spooler").

 

Setting the Default Query

 

To make a given query the default for a class, check the box titled "Make this the default query for this class".

 

Saving Query Template Changes

 

Changes to existing queries can be saved to the configuration file (WMI_QUERIES.DAT) by checking the option to "Save template information into WMI Configuration file".  New queries can be saved to the configuration file and/or saved temporarily for use in the current session.  If neither save option is selected, the query will be executed and then deleted.