This script runs Orchestrator runbooks on the target computer. An Orchestrator runbook is the sequence of activities that orchestrate actions on computers and networks. You can initiate Orchestrator runbooks in MDT using the Execute Runbooktask sequence step type, which in turn runs this script.

 

Value

Description

Input

Environment variables contain the property values, custom property values, database connections, deployment rules, and other information that the scripts require to complete the deployment process.

Output

·     BDD.log contains events that all MDT scripts generate.

·     Return status of the runbook completion.

·     Return parameters from the runbook output.

References

·     ZTIUtility.vbs includes support functions and subroutines that the script uses.

Location

distribution\Scripts

Use

cscript ZTIExecuteRunbook.wsf </debug:value>

 

Arguments

Value

Description

/debug:value

Outputs the event messages to the console and to the .log files. If the value specified in value is:

·     TRUE, event messages are sent to the console and the .log files

·     FALSE, event messages are sent only to the .log files (This is the behavior when the argument is not provided.)

 

Properties

Name

Read

Write

OrchestratorServer

˜

 

RunbookName

˜

 

RunbookID

˜

 

RunbookParameterMode

˜

 

RunbookParametersxParameterID

˜

 

RunbookParametersxParameterName

˜

 

RunbookParametersxParameterValue

˜

 

RunbookOutputParameters

Note   If a runbook returns output parameters, a task sequence variable is created for each parameter and the return value of the parameter is assigned to the task sequence variable.

 

˜

 

This script creates the task sequence variables listed in the following table for internal script use. Do not set these task sequence variables in CustomSettings.ini or in the MDT DB.

Name

Description

OrchestratorServer

Name of the server running Orchestrator specified in Orchestrator Server in the Execute Runbook task sequence step

RunbookName

Name of the runbook specified in Runbook in the Execute Runbook task sequence step

RunbookID

Identifier assigned to the runbook on the Orchestrator server

RunbookParametersxParameterID

Identifier assigned to a specific runbook parameter on the Orchestrator server

RunbookParametersxParameterName

Name assigned to a specific runbook parameter on the Orchestrator server

RunbookParametersxParameterValue

Value assigned to a specific runbook parameter on the Orchestrator server

 

Related Topics

Scripts