In Configuration Manager, the Value property contains the value of an operating system deployment task sequence environment variable.

[IDL]
HRESULT Value([in] BSTR Name, [in] BSTR Value);

HRESULT Value([in] BSTR Name, [out,retval] BSTR* Value);

Parameters

Name

Data type: BSTRQualifiers: [in]The name of the environment variable.
Value

Data type: BSTRQualifiers: [in; out, retval]On input, the value to set for the environment variable. On output, this parameter points to the value that is retrieved for the supplied name.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following value.

S_OK

The method succeeded.

Remarks

The get_Value function succeeds with S_OK when called with an invalid variable name, but retrieves an empty string for the value. Note that this behavior differs from the more common return of a non-zero exit code to indicate an invalid variable name input.

See Also