Retrieves an environment variable value from the local machine running DriveWorks.
|Title||Changes the Title (not the name) of the task.|
|Name||The name of the Environment Variable.|
|Target||The scope of the environment variable (Machine, User, Process)|
Environment variable Name and Target are non-case sensitive
|Property Name||Example Rule||Example Result||Meaning|
|Name||"username"||username||This will find the username within the targeted set of environment variables.|
|Target||"machine"||machine||This will look for the specified variable name within the scope of machine|
|Value||(Data Output)||Returns the value of the variable from the target scope specified.|
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
|Value||The value returned.|
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success with Warnings
Failed (one of the following occurred)
Microsoft Article - Environment Variables
Microsoft Article - Recognized environment variables