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

NinjaOne Endpoint Management: Automation Script Templates

Topic

This article shows you how to access and import scripts from the Template Library in NinjaOne.

Environment

NinjaOne Endpoint Management

Description

The Template Library is a collection of scripts we collected from a list of popular requests from the NinjaOne community, written by our in-house script development team, and resides within NinjaOne's automation library.

We record all new and updated scripts in the Announcements and Webinars section of the NinjaOne Dojo. Refer to Announcements and Webinars for more information.
NinjaOne template scripts are provided "as-is." It is the user's responsibility to test and evaluate them before implementation.
  • Scripts provided in the Template Library tab are available to every NinjaOne account. You must import scripts before you can use them.
  • You can use template scripts for more complex operations. The code is visible for customer verification.
  • To request that we add a script to the Template Library, submit your idea to our NinjaOne Template Library Productboard.

Select a topic to learn more:

Navigating to Template Scripts

  1. In NinjaOne, navigate to Administration → Library → Automation, then select the Template Library tab.
ScriptLibrary_Nav.png
Figure 1: Administration → Library → Automation → Template Library (click to enlarge)
  1. The Automation library list will open, allowing you to browse all template scripts in the library.
    • Use the search field to find a script by name, or use the OS drop-down menu to view all scripts by operating system (OS).
    • Place your cursor over the text in the Description column to view an expanded summary of each script's purpose.

      ScriptLibrary_LibraryPage.png
      Figure 2: The automation library (click to enlarge)

Importing Template Scripts

Importing a template script moves it to the Automations tab, where you can use it to customize your automations.

  1. In the Automation library list, place your cursor over the template you want to use, then click the ellipsis (three dots) menu when it appears and select Import.
ScriptLibrary_ImportScript.png
Figure 3: The automation library (click to enlarge)
  1. The script editor will open. In the Categories drop-down menu, select the categories in which you wish to place the script, then click Import.
ScriptLibrary_ImportScript2.png
Figure 4: The script editor (click to enlarge)
NinjaOne will open a prompt window alerting you that all scripts are provided "as is." Click Agree to continue. NinjOne will save your script template.
ScriptLibrary_AttentionPrompt2.png
Figure 5: The Attention prompt (click to enlarge)

Accessing Imported Script Templates

After importing the script, you can access it from the category you added it to by filtering for that category or script name in the Automations tab.

  1. Navigate to AdministrationLibraryAutomation, then click the Automation tab.
  2. Find your new script template in the Automation library list.
ScriptLibrary_RecallScript2.png
Figure 6: Administration → Library → Automations → Automation library (click to enlarge)

Additional Resources

Refer to the following resources to learn more about using scripts and automating in NinjaOne:

FAQ

Next Steps