Introduction
The Windows Install PowerShell Script for RMM/MDM script can be used with SuperOps RMM to programmatically install the Field Effect MDR agent.
The script requires two inputs to be passed via your RMM variables:
- Field Effect MDR Portal API token
- The client name as it appears in the Field Effect MDR Portal
The API token must 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 appropriate permissions for the script to work properly. Contact support@fieldeffect.com to limit access for your chosen account only to the agent installer API.
To configure the script in SuperOps
- Navigate to Modules > Scripts, click the +Script icon and paste the provided MDR PowerShell script
- Set the scripting language to PowerShell and set it to run as root/system user.
- Under Placeholder Variables, establish the client name variable:
- Enter client as the variable name and select the "Client name" field in the selector
- Enter client as the variable name and select the "Client name" field in the selector
SuperOps has no method to create a secure global variable for the MDR API token. You may decide to: (a) hardcode the token in the body of the script; or (b) create a custom field for the token in SuperOps.
- Establish the MDR API token in SuperOps
- Option a) Hardcode the token value in the script:
- Locate the line around 99 in the PowerShell script where the $api_token token is set:
... param ( [string]$api_token, ...
- Edit the line to add your API token string as the default value:
[string]$api_token = "<<< PASTE TOKEN HERE >>>",
- Save the modified script.
- Option b) Create a custom field for the token:
- Go to Settings > Advanced Configuration > Manage Fields > Client fields and create a new custom field (e.g. MDR API Token).
- Populate that field's value on each client's record under the client profile.
- In the script editor, return to "Add placeholder variables"
- Enter api_token as the variable name and select the "MDR API Token" field in the selector
- Option a) Hardcode the token value in the script:
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