Already a NinjaOne customer? Log in to view more guides and the latest updates.

NinjaOne Endpoint Management: Scheduled Tasks

Topic

This article explains how to configure and manage scheduled tasks in NinjaOne. 

Environment

NinjaOne Endpoint Management

Description

Scheduled tasks allow you to run automations on targeted organizations, devices, or groups on a specified schedule. For more information about groups, refer to Search and Grouping.

Misc Scheduled Tasks (NinjaOne Inc. 01:58)

Index

Select a category to learn more: 

Important Considerations

  • Your NinjaOne user must be either a system administrator or have the appropriate permissions set to create, view, and manage scheduled tasks. To learn more, refer to User Permissions: Permission Options.
  • Configuring fast boot or quick startup on your Microsoft Windows device may prevent scheduled tasks from running on System Startup, because the device does not completely turn off. Since fast boot causes the device to "wake up" rather than start, it does not trigger the startup value.
  • Only system administrators can target groups in a scheduled task or view the created tasks within a targeted group.

Enable Technician Permissions for Scheduled Tasks

To set up permissions for technicians to interact with scheduled tasks, perform the following steps: 

  1. In NinjaOne, click Administration, then select Technician Roles from the expanded options. You can also set the permissions for an individual technician account. For more information about permissions, refer to User Permissions: Permission Options
  2. Open the Automation Library tab, click the Enabled toggle switch, and select the desired access level from the Scheduled Tasks Administrator drop-down menu. Click Save Changes when finished. 
Retrofit_TasksDelete_EnableToggle.png
Figure 1: Scheduled Tasks Administrator options (click to enlarge)

Create a New Scheduled Task

In NinjaOne, click Administration, select Tasks from the expanded options, then click the Create Task button.

scheduled tasks.png
Figure 2: Create a new scheduled task

The task configuration page will open, with the Details section active by default. Ensure the Enabled setting is active, then configure the following settings:

Configure Task Details

Use the following table to configure the data in the Details tab: 

Field NameDescription or Purpose
StatusBy default, this toggle switch should be enabled. 
NameCreate a unique identifier for the task. 
DescriptionGive the task an optional description.
Allow GroupsSelect this checkbox to determine if groups should be allowed as a target for this task. If you select this option, only devices that belong to the group will receive the task. If you remove this option, you will notice new scheduling options become available.
To learn more about device groups, refer to Search and Grouping.
ScheduleYou can set the schedule to run tasks daily, weekly, monthly, or on a custom schedule. Use the Repeats drop-down menu to choose this interval. For an explanation of each schedule option, refer to the following section within this article: Schedule Setting Options.
scheduled tasks_details.png
Figure 3: Configure scheduled task details

Schedule Setting Options

You can set the schedule to run tasks daily, weekly, monthly, or on a custom schedule. Use the Repeats drop-down menu to choose this interval. 

When you select a time to start, the system will defer to the time zone settings you configured in NinjaOne. Refer to Time Zone Settings for more information. 

If you select "After" for the Ends drop-down menu, a new Occurrences field will display. Use this field to enter the number of times the task should run before ending. Note that the Ends drop-down menu will only display when you select the checkbox for Add Groups

scheduled tasks_repeat.png
Figure 4: Configure scheduled task repitition

Refer to the following table for an outline of each Repeats option. 

Repeats OptionSchedule Options
Daily
  • Recur Every: This option only displays if you select All Groups. Select how often you want the task to run, between every day or every 365 days.
  • Start At: This option only displays if you select All Groups. Select which day you want the schedule to start. 
  • Ends: This option only displays if you select All Groups. Select whether you want the task to stop after a certain number of occurrences, on a specific date, or never.
  • Time: Select what time you want to run the task on a daily basis. 
Weekly
  • On Days: This option only displays if you select All Groups. Choose which days of the week the task should run. You can choose a single day or multiple days.
  • Recur Every: This option only displays if you select All Groups. Select which weeks the task will run. The maximum number of weeks between occurrences is 52.
  • Start At: This option only displays if you select All Groups. Choose the day you want the schedule to start. 
  • Ends: This option only displays if you select All Groups. Select whether you want the task to stop after a certain number of occurrences, on a specific date, or never.
  • Weekdays: Choose which days of the week the task should run. You can choose a single day or multiple days.
  • Time: Select what time you want to run the task on the selected days. 
Monthly
  • Day of Month: Select which day of the month you want the task to run.
  • Recur Every: This option only displays if you select All Groups. Choose which months the task will run. The maximum number of months between occurrences is 12.
  • Start At: This option only displays if you select All Groups. Pick which day you want the schedule to start. 
  • Ends: This option only displays if you select All Groups. Determine if you want the task to stop after a certain number of occurrences, on a specific date, or never.
  • Time: Select what time you want to run the task on the selected days. 
Run OnceTime: Select what time you want to run the task. 
Run Once ImmediatelyNo additional options provided. The task will run when you save and close the configuration. 
Every
  • Recur Every: This option only displays if you select All Groups. Specify how frequently the task should occur.
  • Start At: This option only displays if you select All Groups. Choose the day you want the schedule to start. 
  • Ends: This option only displays if you select All Groups. Determine if you want the task to stop after a certain number of occurrences, on a specific date, or never.
  • Occurs Every: Select how often to run the task by minutes or hours.
On System StartupNo additional options provided. The task will run when you turn on the device. 
On User LoginNo additional options provided. The task will run when the user logs in to the device.

Add the Automations

You can add automations to scheduled tasks. Use the following steps: 

  1. Open the Automations tab and click Add automation
scheduled tasks_automations.png
Figure 5: Configure scheduled task automations
  1. The Automation Library modal will display. Select any of NinjaOne's native or custom automations. You can filter by using the drop-down lists. Enter a keyword into the search field to quickly locate relevant automations. 
admin_tasks_new_add automation_filter type.png
Figure 6: The automation library, filtered by type (click to enlarge)
As you add automations to your scheduled task, some may prompt for additional information. If you select a custom automation, the system will prompt you to specify any parameters (optional) and whether you wish to run the automation as System, the current user, or by using credentials from your credential store.

The added automations appear on the new scheduled task page, along with a description of the type and the operating system it supports. Place your cursor over the Information icon to view the automation's category. 

Retrofit_Taskls_CategoryInfo.png
Figure 7: Task category information (click to enlarge)

Add Targets

After selecting tasks, you must specify the targets, which are the devices on which the tasks will run. 

  1. Open the Targets section and click Add targets
scheduled tasks_targets.png
Figure 8: Configure scheduled task targets
  1. In the Add targets modal, use the drop-down menu to filter for specific organizations, devices, and groups on which to run the task. Select all applicable options, then click Apply

    If the Allow Groups option is enabled in the Details tab, you can set a group as a target. Otherwise, NinjaOne will only show Organization or Devices as target options.
  2. Click Save to save your new task.

Edit, Copy, or Delete Scheduled Tasks

Navigate to AdministrationTasks, then move your cursor over the scheduled task you want to modify and select the desired option.

scheduled tasks_edit copy delete.png
Figure 9: Edit, copy, or delete a scheduled task

Additional Resources

Use the following resources to learn more about tasks and automations in NinjaOne: 

FAQ

Next Steps