Query

This class represents a Query object as you would encounter it in the Queries item of the SMS Administrator console.

Table B.49 Query (SMS_Query)

PropertyData typeExampleNotes
Commentsstring"Any comment."A plain text string that contains any comments for the query.
ExpressionstringAppears as a lengthy string.The WQL text for the query.
LimitToCollectionIDstring"SMS00001"The CollectionID of the collection that the query results will be limited to.
Namestring"All Windows 95 Systems"A plain text string that contains the name of the query.
QueryIDstring"SMS005"Key. Identifies this query.
TargetClassNamestring"sms_r_system"Indicates the type of object that will be located by the query.