How to Create a Custom Task for Complex Jobs
Use a custom task to execute a set of complex administrative actions that require multiple resources and commands.
Before you begin:
Who can use this feature? The One2Many feature is available for the following:
|Basic/Plus/Premier Subscription||Modular Subscription||User Permissions|
When might you use a custom task? For example, within a single task you may want to run an updated .msi for anti-virus software and upload virus definition files. Also, you want to perform a full scan on all local drives and copy the resulting log files to your company file server. Another example: You may want to upload files of numerous types (.exe, .bat, .dll, .cmd) and use an install.bat command to execute the job.
Important: This type of task can only be deployed to Windows hosts.
- In Central, go to the page.
- Click Create Task.
Result: The Create Task page is displayed.
- Select Custom.
- Name the task in the Task name field.
Since you may end up with many saved tasks, be sure to use a clear and specific name.
- To locate and upload resources required to complete the task, click Browse....
- If required, type a Command to execute.
Tip: Click the variables link to see a list of environment variables you can use in a command.Remember: You cannot use One2Many to reboot a computer; therefore, remote commands and custom tasks cannot contain reboot commands.
- Type a Successful exit code if the command you run returns a custom value on successful execution. This value is zero by default.
- To override default logging and create a custom log file, select Use custom log file and type a path to the log.
- Choose whether to assign a plan now, or later:
See How to Create a Plan for Executing One2Many Tasks to continue.
- To save your task and create a new plan that will be used to run the task, click Save and continue
- To save the task without assigning a plan, click Save and close (you will be able to assign a plan later)
What to do next:
Tip: Once you have assigned a task to a plan and have run the plan, you can monitor progress and view logs on the page. You can view logs for completed tasks on the page.
Article last updated: 27 September, 2022