Windows Task Properties
Task Properties: Windows Task
Property | UI Field Name | Description | Specifications | Required | Patchable (Instance Only) |
|---|---|---|---|---|---|
| Command | If | Variables supported. | N | Y |
| Command or Script | Specification for whether a single command or a script is being executed. | Valid values:
Default is Command (1). | N | Y |
| Create Console | If | Boolean; Valid values: true/false. Default is false. | N | N |
| Interact with Desktop | Specification for whether or not a task that runs an application with a GUI requires some manual actions from a user (for example, clicking buttons or entering values). | Boolean; Valid values: true/false. Default is false. This property is effective only for tasks executed on Windows XP or Server 2003. Windows Vista introduced the desktop isolation feature, which prevents tasks from accessing the interactive desktop session on Vista, Windows 7, Server 2008, Windows 8, and Server 2012. The Windows agent will execute the task, but the Interact with Desktop option has no effect. Therefore, an interactive application's GUI will not be visible on those platforms. | N | N |
| Run with Highest Privileges | Specification for whether or not to execute the task using an elevated privileges token, rather than one subject to User Account Control (UAC) restrictions. An elevated token allows a process to execute with all the privileges available to its specified credentials. For example, a task executed with an administrative account will behave as though it received permission via a UAC dialog to perform a privileged operation. | Boolean; Valid values: true/false. Default is false. This property will not give a user account privileges that have are not already granted to it. For example, taking ownership of a file is a privileged operation by default. A task will still fail even with this option selected if it is run with a regular user account that has not been granted the ability to change file ownership. | N | Y |
| Environment Variables | Environment variables needed by the program to run. | List of environment variables: | N | Y |
| Output File | If | N | Y | |
| Exit Code Processing | Specification for how the Controller should determine whether the executed command failed or completed successfully. | Valid values:
Default is Success Exitcode Range (1). | N | Y |
| Exit Codes | If | Format: Numeric. Use commas to list a series of exit codes; use hyphens to specify a range. Example: 1,5, 22-30. | Y | Y |
| Scan Output For | If | The Controller will process this field as a regular expression. | Y | Y |
| Failure Only | If | Boolean; Valid values: true/false. Default is false. | N | Y |
| Output File | If | Y | Y | |
| Number of Lines | If | Integer; Default is the value of the Retrieve Output Default Maximum Lines Universal Controller system property. | N | Y |
| Starting Line | If | Integer; Default is 1. | N | Y |
| Scan Text | If | The Controller will process this field as a regular expression. | N | Y |
| Automatic Output Retrieval | Specification for whether you want the Controller to automatically retrieve any output from the job and attach it to the task instance record. | Valid values:
Default is NONE (1). info If | N | Y |
| Output Type | If | Valid values:
Default is STDOUT (1). | Y | Y |
| Parameters | Any arguments needed by the program to execute properly. | Variables are supported. | N | Y |
| Retry Exit Codes | Exit code range for which an auto-retry of the task in FAILED status will occur. Exit code ranges must be in the same format as ranges specified in | Format = 1,5,22-30 | N | Y |
| Retry Indefinitely | Specification for whether or not the Controller should continue trying indefinitely to run this task. If | Boolean; Valid values: true/false. Default is false. | N | N |
| Retry Interval | Number of seconds between each retry. | Integer; Default is 60. | N | N |
| Maximum Retries | Maximum number of times that the Controller should retry this task after it has started and gone to a failed state. | Integer; Default is 0. | N | N |
| Suppress Intermediate Failures | Specification for whether or not the following will be suppressed until all scheduled retry attempts have been made:
| Boolean; Valid values: true/false. Default is false. | N | N |
| Runtime Directory | Directory from which the application should be executed. Variables are supported. | N | Y | |
| Script | If | Y | Y | |
| Wait For Output | If | Boolean; Valid values: true/false. Default is false. | N | Y |