Name | Description | Return Type | Usage Example |
---|
GetMachineEnvironmentVariable(string name) | Gets the specified Windows machine environment variable (relative to the agent machine) | String | $Agent.GetMachineEnvironmentVariable("NUMBER_OF_PROCESSORS")$ | 8 |
GetProcessEnvironmentVariable(string name) | Gets the specified Windows process environment variable (relative to current process, the agent machine's service user, and the agent machine) | String | $Agent.GetProcessEnvironmentVariable("ContinuaCI.Build.BuildNumber")$ | 9 |
GetUserEnvironmentVariable(string name) | Gets the specified Windows user environment variable (relative to the agent machine's service user and the agent machine) | String | $Agent.GetUserEnvironmentVariable("TEMP")$ | "C:\Users\jbloggs\AppData\Local\Temp" |