Finding All References to MDT Variables in a Deployment Share: VariableDocumentor v1.0
Aly Shivji

MDT
is very flexible in the ability to define and use variables inline and
in different locations. However, this also means that if you forget to
assign a variable a value it may lead to unintended consequences that
you might not easily discover. There are many different places in which
you could find references to a variable:

  • Task Sequence Variables– You can use variables in a task sequence in two ways:ZTIGather.xml –
    This file defines the variables and lists that are declared by MDT for
    the Gather step of the Task Sequence to use and process for rules. It
    also defines whether variables are re-writable.

    • Directly used in the command line with the notation %variable%
    • As a condition on a particular step in the task sequence
  • Within MDT scriptsvariables are called in different ways
    • In VBScripts you may see a reference to an oEnvironment.Item or an oEnvironment.ListItem
    • In Powershell you may see references to tsenv: or tsenvlist:
    • In cmd and batch scripts you may see references to %variable%
  • In a CustomSettings or other INI file you could see references to variables in the “Properties=” field

Read the full post at the link at the top of the page.