US English (US)
ES Spanish

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

  • Contact Us
English (US)
US English (US)
ES Spanish
  • Home
  • AutoElevate Knowledgebase
  • Integrations
  • RMM Tool Integrations & Automated Deployment

NinjaOne Deployment Script

Learn how to deploy using NinjaOne with a simple script to get up and running quickly

Written by Chris Liles

Updated at November 18th, 2024

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

  • AutoElevate Knowledgebase
    New to AutoElevate? START HERE General & Troubleshooting Managing Rules Integrations Announcements FAQ Sales & Marketing
  • Password Boss Knowledgebase
    Using Password Boss Business Administration Password Boss Partner Documents
  • Changelogs for Autoelevate and Password Boss
  • Current Status
  • Marketing Toolkit
    MSP Marketing & Education Toolkit
+ More

Table of Contents

How it Works Component Installation Additional Considerations What this will do

 

This document explains how AutoElevate's official NinjaOne RMM deployment script works, how to install the component in your component library, and some considerations if you have previously deployed agents.

There is no need to create Companies in the AutoElevate Admin Portal manually.

When you run the script on the target device(s), the latest MSI will download and install, automatically filling the License, Companies, and Locations. Then, you can refresh the data using the "Refresh Data" button in the AutoElevate Admin Portal 'Computers' screen, and you should see the company/location/computer show up.
 

How it Works


The script grabs the company and location from the environment variables on the endpoint and updates the MSI installation arguments along with the variables set in the component. This prevents the need to manually input the Company or Location Name when deploying.
 

Component Installation


  1.  From within NinjaOne, go to Home>Administration>Library>Automation                                                                                                        
  2. Click +Add button and select New Script    
  3. Provide the script details  (1) Name (2) Language (3) Operating System (4) Architecture (5) Run As                                                                                                                                                                                                                                                          
  4. Drag and drop the script attached at the bottom of this document (AE_Install_Ninja_2024.PS1) 
     
  5. Create the Script Variables. Once uploaded, you must create some variables on the component before you Save it to your library. The variables you will need to Create are:
     
  • License_Key
    • Type: String 
    • Data: This is located in the settings screen of your AE admin portal
  • ELEVATION_MODE
    • Type: Drop Down
    • Data: “live” “audit” “policy”
  • BLOCKER_MODE
    • Type: Drop Down
    • Data: “disabled” “audit” “live”

 

  1. Save. Click the Save button in the top right corner.
     
  1. Schedule a job. You are now ready to use this component to schedule jobs on devices listed in NinjaOne.
     

Additional Considerations


If you have manually created any Companies in the AutoElevate Admin Portal, you may see duplicates appear after using this script. This is because the NinjaOne location is being used to identify the new Company created by the script (something that you could not supply when creating them manually).

To resolve this issue and ensure that further script jobs for the same Company don't continue to create duplicates, you will need to Merge the Companies. To do this, you will need to:

  1. Navigate to the Companies screen in the AutoElevate Admin Portal.
     
  2. Select both Companies in question.
     
  3. Select the Merge action from the Actions menu.
     
  4. Follow the instructions on the dialog to follow. It's important that you set the Company that was created with the script to be the "Target" Company. This will ensure that the older, manually created Company will be merged into the new one.


 

Download the NinjaOne Script

 

Setting Up Automatic Deployment

Ninja will allow you to create automatic installations based on certain conditions. 

Go to Administrations > Policies > Windows Workstation

Click Add a Condition

Click Select a condition

  1. Condition is Windows service
  2. Service is AutoElevate Agent
  3. State is Doesn't Exist
  4. Select “Trigger again if condition is still true after reset”

Click Apply

Click Add next to Automations and select your AE install script

Then, set the auto-reset to "When no longer met"

 

Click Apply

Save your policy

What this will do

This will now check to see if the AutoElevate service exists on a windows workstation and force the script to kick off if it isn't listed. 

 

 

 
 

 

implementation ninjaone

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • SyncroMSP - Deployment Script
  • Deploying using GPO
  • Kaseya VSA Deployment Procedure
  • ConnectWise Automate (Labtech) Setup Files
  • Products
    • Privileged Access Management
    • Password Management
  • Solutions
    • For MSPs
    • For IT Pros
    • By Industry
  • Resources
    • Weekly Demos
    • Events
    • Blog
    • FAQ
  • Company
    • Leadership
    • Culture + Values
    • Careers
    • Awards
    • News & Press
    • Trust Center
    • Distributors
  • Get Pricing
  • Free Trial
  • Request a Demo
  • Support
  • Login
  • Contact
4925 Independence Parkway
Suite 400
Tampa, FL 33634
CALL US (813) 578-8200
  • Link to Facebook
  • Link to Linkedin
  • Link to Twitter
  • Link to Youtube
© 2023 CYBERFOX LLC ALL RIGHTS RESERVED  |  Privacy Policy

Knowledge Base Software powered by Helpjuice

Expand