product icon

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
    • Premier
    • Automation
    • Create and Modify One2Many tasks
    • Run One2Many tasks
    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.
    1. In Central, go to the One2Many > Tasks page.
    2. Click Create Task.

      Result: The Create Task page is displayed.

    3. Select Custom.
    4. 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.
    5. To locate and upload resources required to complete the task, click Browse....


    6. 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.
    7. Type a Successful exit code if the command you run returns a custom value on successful execution. This value is zero by default.
    8. To override default logging and create a custom log file, select Use custom log file and type a path to the log.
    9. Choose whether to assign a plan now, or later:
      • 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 One2Many > Plans page. You can view logs for completed tasks on the One2Many > History page.
    Article last updated: 27 September, 2022