The Windows Install PowerShell Script for RMM/MDM script can be used with your NinjaOne RMM to programmatically install the Field Effect MDR agent.
The script requires two inputs to be passed in NinjaOne:
- Field Effect MDR Portal API token
- One of:
- client organization name as it appears in the Field Effect MDR Portal; or
- Field Effect MDR license key unique to the client organization
- The API token can be created in the MDR portal following the instructions in our Help Center: Create an API Key. The Portal account associated with the token must have admin permissions for the script to work properly.
- The Field Effect MDR license key for a client org is found in the agent installer zip file downloaded from the Field Effect Portal: The Downloads Page.
To install the agent using NinjaOne
1) Upload the MDR Windows Install PowerShell script to the NinjaOne script repository:
i) Go to Administration > Library > Automation, and create a new script by importing it.
2) Set a secure custom field for the API token to be used for all client organizations:
Go to Administration > Devices > Global Custom Fields and click Add. Configure the FE_MDR_API_TOKEN:
Name: FE_MDR_API_TOKEN
Label: Field Effect API token
Field Type: Secure
Scope: Organization
Technician Permission: Read
Script Permission: Read
3) Set unique client name or license key:
- The script will automatically leverage the organization name as defined in NinjaOne (
NINJA_ORGANIZATION_NAME). The name in NinjaOne must match the client organization name in the Field Effect MDR Portal. In most cases, this option is preferred. - Alternatively, you may use a custom field to define the client name or client license key to complete the installation:
Go to Administration > Devices > Organization Custom Fields and click Add. Configure the FE_MDR_LICENSE_KEY (or replace 'FE_MDR_LICENSE_KEY' with 'FE_MDR_CLIENT_NAME' to install by client name):
Name: FE_MDR_LICENSE_KEY
Label: Field Effect MDR Key
Field Type: Text
Scope: Organization
Technician Permission: Read
Script Permission: Read
4) Go to the NinjaOne organization dashboard, select a client organization, then click the Custom Fields tab. In the newly created fields, enter the API token value (only has to be done on ONE organization, since it is a global value) and the license key value for that specific client (if using alternative option) and save.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article