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

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

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



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

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.


The method succeeded.


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

Other Resources

ITSEnvClass Interface

Send comments about this topic to Microsoft.