The SMS_TaskSequence_VariableConditionExpression Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a condition expression to check for the existence of a variable and, optionally, compare the variable to a specific value.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_TaskSequence_VariableConditionExpression : SMS_TaskSequence_ConditionExpression
	String Operator;
	String Value;
	String Variable;


The SMS_TaskSequence_VariableConditionExpression class does not define any methods.



Data type: StringAccess type: Read/WriteQualifiers: [Not_Null]Operator to use in the verification. Possible values are:
  • exists

  • notExists

  • equals

  • notEquals

  • less

  • lessEqual

  • greater

  • greaterEqual


Data type: StringAccess type: Read/WriteQualifiers: NoneOptional value to which the variable can be compared.

Data type: StringAccess type: Read/WriteQualifiers: [Not_Null]The name of the variable to verify.


There are no class qualifiers for this class. For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

This condition expression is used to test the value of a task sequence variable. For example, to perform a step only if the task sequence is not running under Windows PE, you would set the following:

Variable - _SMSTSInWinPE.

Operator - equals

Value - false

For more information about task sequence variables, see


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.