How to Provide End-User Self-Service Tools with NinjaOne

5 Bite-Sized Ways to Improve Your Business Every Week

Join fellow growth-minded MSPs and feed your business with new tips and tutorials delivered straight to your inbox.

Grow faster. Stress less.

Visit our Resources Center for more MSP content.
Peter Bretton      

NinjaOne released our custom field functionality in 2021, adding a new level of flexibility, customization, and automation power to our platform. Custom fields are an advanced feature that requires setup to use, but once you start, the power and flexibility of this feature is almost limitless.

In this blog piece, we’ll walk you through a powerful use case for custom fields in NinjaOne. Refer to part one of this series for a quick overview of NinjaOne Custom Fields.

Give your end-users self-service tools

The more you can enable end-users to help themselves, the more time your team has to focus on challenging, complex, and value-adding tasks. Ninja’s self-service IT portal gives end-users some access to Ninja functionality – like self-service file restores, ticket management, and VPN-less remote control. However, our system tray icon is fully customizable and can add additional functionality right on the end-point.

By combining custom fields with the system tray icon, we can enable end-users to kick off processes in Ninja without ever giving them access to the dashboard. A few examples we’ve seen from partners include:

  • Installing an application
  • Lock workstation
  • Clear DNS cache
  • IP Release and renew
  • Fix a stuck printer

In this example, we’ll walk you through how to give end-users the ability to self-service install Chrome using the system tray icon.

To create a self-service install utility in the systray icon, you’ll need:

  1. A custom field
  2. A command line script for the system tray icon.
  3. A software installation script (one for each application)
  4. A custom condition to deploy the script

Setting up the custom field

We’ll follow the same procedure as in the previous use case. As installed application are likely unique to device roles, we’ll create a device custom field.

  1. Create a custom field:
    Label: Install Chrome
    Name: installChrome
    Type: Checkbox
    Technician: Either Editable or Read Only
    Scripts: Read/Write
  2. Assign the custom field to the ‘Windows Desktops and Laptops’ role.

Setup the command line script on the system tray icon

  1. Navigate to ‘Configuration’ -> ‘Branding’
  2. In the ‘Systray Icon’ section click ‘Configure’
  3. If you have not done so, enable the systray icon
    • If you have not done so, spend some time setting up your menu
  4. Click ‘Add Menu Item’
    • Type: Launch
    • Label: Install Chrome
    • Windows Command
      • > cmd.exe /c "%ninjarmmcli% set newdevice 1"

This command opens the command line (cmd.exe) opens the NinjaRMM command line (%ninjarmmcli%) uses the NinjaRMM CLI to set the new device field to true (set newdevice 1) then closes both the command line (/c).

Setup the software installation script and custom condition

Ninja includes a native application installer utility for MSI and EXE installers that we can leverage for this exercise.

First we’ll setup the application installation script:

  1. In your policy of choice, navigate to conditions, and click ‘Add a condition’
  2. Click ‘Add Script’
  3. Choose the native Install Application script
    1. Choose the Windows architecture you expect to install on
    2. Load your installation file either by uploading the file to Ninja or pointing to a publicly-hosted URL
    3. Add your parameters (we recommend using silent install switches)install application - Four Advanced Uses for Custom Fields in NinjaOne
    4. Click Apply

Next, we’ll setup the custom condition first:

  1. Set the condition type to ‘Custom Fields’
  2. Click ‘Add’ next to ‘Custom field value must meet all conditions’
  3. Choose the ‘installChrome’ field ‘Equals’ and check the box
  4. Save
  5. You will want to avoid notifications and set a short reset interval on this condition as it is self-resolving.

If you’re using Ninja ticketing, you can create, add time to, and close a ticket automatically for this action for billing purposes.

Continue on to part three of the series below:

Why NinjaOne?

Tired of cycling through RMMs and being disappointed? Try out custom fields for yourself and see why NinjaOne is different. Start your free trial.

rmm free trial

5 Bite-Sized Ways to Improve Your Business Every Week

Join fellow growth-minded MSPs and feed your business with new tips and tutorials delivered straight to your inbox.