| title | SMS_TaskSequence_SetVariableAction class |
|---|---|
| description | An SMS Provider server class that represents a task sequence action. It sets the value of a task sequence environment variable. |
| ms.date | 08/11/2020 |
| ms.subservice | sdk |
| ms.topic | reference |
| ms.collection | tier3 |
The SMS_TaskSequence_SetVariableAction WMI class is an SMS Provider server class in Configuration Manager. It 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 DoNotShowVariableValue;
Boolean Enabled;
string HiddenVariableValue;
String Name;
String SupportedEnvironment;
UInt32 Timeout;
String VariableName;
String VariableValue;
};
The SMS_TaskSequence_SetVariableAction class doesn't define any methods.
Data type: SMS_TaskSequence_Condition
Access type: Read/Write
Qualifiers: None
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: Boolean
Access type: Read/Write
Qualifiers: None
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: String
Access type: Read/Write
Qualifiers: [AllowedLen("0-255")]
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: Boolean
Access type: Read/write
Default value false. This property corresponds to the setting in the task sequence editor, Do not display this value.
Data type: Boolean
Access type: Read/Write
Qualifiers: None
For more information, see SMS_TaskSequence_Action server WMI class.
HiddenVariableValue
Data type: String
Access type: Read/write
Hidden value of the task sequence environment variable. The value length must be between 0 and 4,001 characters.
Data type: String
Access type: Read/Write
Qualifiers: [AllowedLen("1-100")]
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: String
Access type: Read/Write
Qualifiers: [Not_Null:ToInstance]
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: UInt32
Access type: Read/Write
Qualifiers: None
For more information, see SMS_TaskSequence_Action server WMI class.
Data type: String
Access type: Read/Write
Qualifiers: [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.
Data type: String
Access type: Read/Write
Qualifiers: [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.
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.
For more information, see Configuration Manager server runtime requirements.
For more information, see Configuration Manager server development requirements.