List Environment Variables
Demonstrates the List Environment Variables action
This sample task demonstrates the List Environment Variables action, which creates and populates a dataset that contains all the current environment variables within a specific scope along with their values. In this sample task, the scope selected is "machine", however the General tab properties of the 'List Environment Variables' step can be adjusted to list "user" or "process" environment variables instead.
During runtime, a Loop Dataset action is used to loop through the list of environment variables populated into the dataset. A 'Message Box' action is contained within the loop/end loop steps which displays the current variable and its corresponding value during each loop process.