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

Run or Install Application Automations

Topic

This article provides instructions for running or installing automations on a device and configuring default parameters. 

Environment

NinjaOne Endpoint Management

Description

NinjaOne empowers you to install and run app automations. The Run and Install automation application options allow you to create a library of installed and running application scripts to add to a policy or scheduled task, or run on demand. For example, if you run CCleaner on endpoints, you can use NinjaOne to call it.

Once you install an application in the Automation Library, you can use it multiple times across different organizations and devices.

View additional tutorials in our video library.

Index

Select a category to learn more:

Add Automated Applications: Installation

To install an application automation:

  1. Navigate to AdministrationLibraryAutomation. Then, click Add → Installation.


Figure 1: Install an app automation in NinjaOne (click to enlarge)

The Install application dialog displays with the General tab open by default.

  1. Use the table below to help complete the fields.
Field NameDescription
NameGive the application a unique identifier. 
Operating SystemSelect whether the application is to run on Apple macOS or Windows devices.
ArchitectureSelect whether the application will run as 32-bit, 64-bit, or both. 
Apple macOS can only run on 64-bit.
InstallerUse the drop-down menu to select whether to upload the installer or provide the path to the MSI or EXE using an HTTPS URL. Apple macOS installers use PKG and DMG.
CategoriesSelect one or more categories that best describe how you will use the application.
Run AsBoth macOS and Windows allow the application to run as the system. Depending on the OS selected, you may have additional options to run as the current user or utilize the preferred Windows local or domain admin credentials from your credential store. Some software may require you to deploy the installation with specific credentials.
Parameters

When adding preset parameters, click Add at the top right of the Parameters field. If the installer requires a specific silent parameter, add it here. For more information about preset parameters, refer to Automation Library: Parameters. MSI installers automatically run with the following parameters:

  • /quiet /qn /norestart /log {path to script folder}ninjascript-output-{current-time}.txt
  • Examples of common EXE silent parameters: /silent /Silent /S /s -silent --silent
  • Examples of common MSI silent parameters: /quiet /qn /q
  1. Open the Additional Settings tab to view more configuration options.

install application_additional settings.png
Figure 2: Install an app automation in NinjaOne → Configuration tabs

Field NameDescription
Helper FilesYou can include helper files with the installer. An example of a helper file might be a license file you need to deliver with a software installation.
Installer IconYou can display a custom icon for the application within the NinjaOne console (this icon appears only in the Automation Library, not on the devices).
Pre-scriptChoose an installed custom automation from the library to run before the installed application. Native scripts are not available for this purpose.
Post-scriptChoose an installed custom automation from the library to run after the installed application. Native scripts are not available for this purpose.
  1. Click Submit.

If there are errors or failures when attempting to add the application, the affected fields turn red and show an exclamation point icon. Move your mouse cursor over the icon to see the reason for failure.

The application moves to the Under Review tab, where NinjaOne validates it to ensure the primary and helper files are free of malware or viruses. It moves to the Automations tab after the scan is successful.

Add Automation Applications: Run

You can install or execute an application without transferring files using the app automation Run option. You can use a file that already exists on the endpoint. The run automation tool only works for Windows devices.

  1. Navigate to AdministrationLibraryAutomation. Then, click Add automation → Run.

add automation_run.png
Figure 3: Run an app automation in NinjaOne

The Run application dialog displays.

  1. Use the table below to help complete the fields.
Field NameDescription
NameGive the application a unique identifier. 
CategoriesSelect one or more categories that best describe how you will use the application.
ArchitectureSelect whether the application will run as 32-bit, 64-bit, or both. 
Apple macOS can only run on 64-bit.
PathLocal path only.
Run AsWindows allows the application to run as the system. Depending on the OS selected, you may have additional options to run as the current user or utilize the preferred Windows local or domain admin credentials from your credential store. Some software may require you to deploy the installation with specific credentials.
ParametersWhen adding preset parameters, click Add at the top right of the Parameters field. If the installer requires a specific silent parameter, add it here. For more information about preset parameters, refer to Automation Library: Parameters. Examples of common EXE silent parameters: /silent /Silent /S /s -silent --silent
  1. Click Save.

The application moves to the Under Review tab, where NinjaOne validates it to ensure the primary and helper files are free of malware or viruses. It moves to the Automations tab after the scan is successful.

Example: Install and Run Automated Applications

For this example, we will demonstrate how to deploy Microsoft 365 using the app installation automation and customize helper files within NinjaOne. We'll start by navigating to a Microsoft website for the Office Customization Tool, such as Office Customization Tool - Microsoft 365 Apps admin center (external link). This tool will help you generate an XML file you can customize to deploy certain settings as part of the Office installation.

  1. On the Office Customization Tool page, click Export, select Office Open XML formats, and then accept the license agreement.
  2. Enter a file name. This file name is the one that you will use to reference the helper files.
  3. Click Export.

office customization tool_export.png
Figure 4: Microsoft Office customization tool → Export

Now you must configure the Office Deployment Tool. This is the actual file that installs Microsoft Office. Once you've downloaded this file, you will receive a self-extracting executable with a file called setup.exe. This is the file that you need to deploy through NinjaOne.

  1. Return to NinjaOne and navigate to Administration → Library → Automation.
  2. In the upper-right section of the page, click Add automation and select Installation.

The Install application dialog displays.

  1. For this example, we will name the app installation Microsoft 365 Custom and describe it as Custom.
  2. From the Installer drop-down menu, select the setup.exe installation. You must add the correct parameter for Microsoft 365; this is forward slash configure (/configure) and must match the name of the custom XML file you just generated. In this case, it will be /configure Configuration.xml.
  3. In the Parameters field, enter /configure Configuration.xml and click Add.
  4. Open the Additional Settings tab.
  5. Click Upload File, then select the configuration XML file if it's not already displayed.

install app_additional settings_helper file.png
Figure 5: Upload the helper file

  1. Click Submit.
  2. If prompted, enter your one-time verification code and then click Continue.

Navigate to one of your test machines and run the automation.

  1. On the device dashboard, click the action button and select Run Automation → Install Application.

device_run install app.png
Figure 6: Run the install application automation from a device dashboard

  1. Choose Microsoft 365 Custom, select the preset parameter you added earlier, and then click Run, Yes, and Run Automation.
    You will notice that the application launches, but it may take a few moments to complete the installation. 
  2. Choose Excel for testing to confirm customization deployment.

Additional Resources

Refer to Scripting, Automation, CLI: Resource Catalog to learn more about NinjaOne's Automation Library.

FAQ

Next Steps