These task sequence variables govern the operation of the task sequence action. Variables marked as input variables are read or used by the task sequence action. In most cases, input variables correspond to task sequence action fields in the task sequence editor and can be set via that user interface. Alternatively, input variables can be set at runtime from per-collection or per-computer variables, via the Set Task Sequence Variable action or via the TSEnvironment COM object. Variables marked as output variables are written or set by the task sequence action to be read by later actions in the task sequence.

Run Command Line Task Sequence Action

Action Variable Name Description

SMSTSDisableWow64Redirection

(input)

By default, when running on a 64-bit operating system, the program in the command line is located and run using the WOW64 file system redirector so that 32-bit versions of operating system programs and DLLs are found.  Setting this variable to “true” disables the use of the WOW64 file system redirector so that native 64-bit versions of operating system programs and DLLs can be found.  This variable has no effect when running on a 32-bit operating system.

WorkingDirectory

(input)

Specifies the starting directory for a command-line action.

Note
The specified directory name must not exceed 255 characters.

Examples:

  • "C:\"

  • "%SystemRoot%"

SMSTSRunCommandLineUserName

(input)

Specifies the account by which the command line will be run.   The value is a string of the form username or domain\username. This task sequence variable is only available in Configuration Manager 2007 R2

SMSTSRunCommandLinePassword

(input)

Specifies the password for the account specified by SMSTSRunCommandLineUserName. This task sequence variable is only available in Configuration Manager 2007 R2

See Also