WMISimpleQuery
Execute a Simple WMI Query
Definition
Use this command to query available system and software components via WBEM/WMI.
The instance is not responded to directly over a number, but instead through search criteria.
Settings
Input
- Namespace
Enter the Namespace to which the object should be connected and in which the class (object) is located. You can also set this value via the WMI Wizard. - Object
path
The relative path within the namespace which corresponds to the class names, for which you need to determine the number of present instances on the system. You can also set this value via the WMI Wizard - Query
Similar to a SQL statement, the WHERE clause is given a criterion in the query which must be met. If this criterion matches a found instance of the given class then the properties of this instance are used. However, a result amount is not given back, rather simply the first instance which matches this criterion. At the moment, only the equal sign is supported as criterion. This value is also set in the Wizard in the Search key dialog. - Variables
prefix
This entry gives the actual variable names (together with the properties); i.e., the prefix is placed before the variable names. - Properties
The properties chosen in the WMI Wizard. Every line is a NetInstall variable. The first variable is called %WMI_Caption%, for example, the second %WMI_Compressed%, and so on. The value of the variables is produced during script execution