The SMS_TaskSequence_SetVariableAction Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a task sequence action that sets the value of a task sequence environment variable.

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

Class SMS_TaskSequence_SetVariableAction : SMS_TaskSequence_Action
{
	SMS_TaskSequence_Condition Condition;
	Boolean ContinueOnError;
	String Description;
	Boolean Enabled;
	String Name;
	String SupportedEnvironment;
	UInt32 Timeout;
	String VariableName;
	String VariableValue;
};

Methods

The SMS_TaskSequence_SetVariableAction class does not define any methods.

Properties

Condition


Data type: SMS_TaskSequence_ConditionAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
ContinueOnError


Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
Description


Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("0-255")]See SMS_TaskSequence_Action Server WMI Class.
Enabled


Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
Name


Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("1-100")]See SMS_TaskSequence_Action Server WMI Class.
SupportedEnvironment


Data type: StringAccess type: Read/WriteQualifiers: [Not_Null:ToInstance]See SMS_TaskSequence_Action Server WMI Class.
Timeout


Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
VariableName


Data type: StringAccess type: Read/WriteQualifiers: [CommandLineArg(1), Not_Null, AllowedLen("1-256")]Name of the task sequence environment variable to set. The name length must be between 1 and 256 characters.
VariableValue


Data type: StringAccess type: Read/WriteQualifiers: [CommandLineArg(2), Not_Null, AllowedLen("0-4001")]Value of the task sequence environment variable. The value length must be between 0 and 4,001 characters.

Remarks

Class qualifiers for this class include:

[CommandLine("tsenv.exe \"%1=%2\""),

ActionCategory{"General,7,1"},ActionUI{"AdminUI.TaskSequenceEditor.dll", "Microsoft.ConfigurationManagement.AdminConsole.TaskSequenceEditor", "SetSequenceVariableControl", "TaskSequenceOptionControl"}]

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

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.