Deploying ThreatLocker using ConnectWise Control

2 min. readlast update: 12.27.2023

View in Browser

Note: For organizations deploying to a large amount of endpoints, ThreatLocker recommends using a staggered deployment approach. Organizations that deploy to a large number of endpoints at once may experience increased bandwidth usage as Windows Core and application definitions are downloaded to each endpoint. QOS can be used to limit bandwidth to corecdn.threatlocker.com and apps.threatlocker.com

 The ThreatLocker agent can be deployed using ConnectWise Control provided your license supports the ability to run commands.

You will need to download the PowerShell script for Ninja located in the Deploy Agents section of the Deployment Center in the ThreatLocker Portal. It will need to be modified by adding the following 3 lines at the top for ConnectWise use:

#!ps

#maxlength=50000

  #timeout=90000  

undefined

Then you need to modify the script in the following 2 areas:

Under ## Variables, you will need to replace $env:NINJA_ORGANIZATION _NAME with the name of the organization you wish to deploy to enclosed in apostrophes as shown in the second screenshot below.  

undefined

undefined

Under ## Attempt install, replace UPDATE_UNIQUE_ ID_ HERE with your Parent company's Unique Identifier in ThreatLocker.

undefined

To locate your Unique Identifier, within the ThreatLocker portal, navigate to the Computers page. Click the 'Install New Computer' button located at the top of the page. The RMM and Script Deployment window will open. Your Unique Identifier is located on line 5 as shown in the photo below.

undefined

Once you have modified your script as needed, within ConnectWise Control, navigate to the Access Page. Click on the 'Commands' icon. It is located at the red arrow in the screenshot below.  

undefined

Paste your edited script in the text box that says 'Enter a command'. Then you can click the 'Run Command' button. You will receive output showing you if the installation was successful or not.

undefined

Please note that if you are typing the script into this box line by line, you will need to hit shift + enter at the end of each line. If you just press enter, the command will be executed immediately.  

Was this article helpful?