The SMS_MachineVariable Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that defines the settings of a task sequence variable that is unique to a specific computer.

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

Class SMS_MachineVariable
{
	Boolean IsMasked;
	String Name;
	String Value;
};

Methods

The SMS_MachineVariable class does not define any methods.

Properties

IsMasked

Data type: BooleanAccess type: Read/WriteQualifiers: NoneThis value should be set to true if the contains a sensitive value, such as a password, in which case the SMS Provider treats this property as write-only and disallows reads. The default value is false.If true, the Value property is obfuscated in the database and when it is transmitted to the client. For any setting of this property, task sequence actions always receive the unobfuscated value.
Name

Data type: StringAccess type: Read/WriteQualifiers: [key]The name of the machine variable. The default value is "".
Value

Data type: StringAccess type: Read/WriteQualifiers: NoneThe machine variable value. The default value is null. This property is obfuscated if the IsMasked property value is true.

Remarks

The task sequence variable can customize the behavior of a task sequence for a specific computer, and it overrides any definition that is set by SMS_CollectionVariable Server WMI Class. These variables are automatically replicated down through the site hierarchy. For example, if a variable is declared on the primary child site server, it will be available on the primary grandchild site server, but not on the primary site server.

Class qualifiers for this class include:

  • Embedded

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

Your application uses this class to create objects that are embedded by the SMS_MachineSettings Server WMI Class and accessed by using the MachineVariables property. For an example of the use of this class, see How to Create a Computer Variable in Configuration Manager.

Requirements

Runtime Requirements

Development Requirements

See Also