Variable Expansion

Variable Expansion allows you to specify certain constants which are replaced at runtime with real values. This can be used in filter conditions, or as command line arguments for the Command Line Automation (CLA) feature.

In addition to predefined constants, you can also reference system environment variables using the following syntax:

%VARIABLE_NAME%

Example

%OS%

Standard Constants

You can use the following constants directly:

  • ${Process.CommandLine}
  • ${Process.WorkingDirectory}
  • ${Process.MemorySize}
  • ${Machine.Name}
  • ${Machine.CPUCount}
  • ${Network.IPAddress}
  • ${Network.MacAddress}
  • ${OperatingSystem.Name}
  • ${OperatingSystem.ServicePack}
  • ${OperatingSystem.Version}
  • ${OperatingSystem.SystemDirectory}
  • ${User.Domain}
  • ${User.Name}
  • ${NETRuntime.Version}
  • ${CRLF}

WMI Constants

WMI constants follow this syntax:

${wmi:<ClassName>}

Where <ClassName> is the name of the WMI class. For example:

${wmi:Win32_LogicalDisk}

You can also select specific objects and properties:

${wmi:Win32_LogicalDisk[Name='D:'].Size}

For a full list of available WMI classes, refer to:

Microsoft WMI Class Reference


Back to top