Skip to main content

Threatlocker Agent Deployment

Summary

This script installs the ThreatLocker agent on Windows and Mac operating systems.

EDF Configuration

For Windows Deployment:

  • Enter the Threatlocker Authorization key in System Properties under system property ThreatLockerAuthKey
  • Enter the Organization name in Client EDF Threatlocker_Organization_Name
  • Enter the Threatlocker Group ID in Client EDF ThreatlockerGroupID

Image1
Image2 Image8

For MAC Deployment:

  • Enter Threatlocker Mac in Client EDF ThreatLockerMacGroupKey

Image3

Sample Run

First Run:
Set 'Set_Environment' to 1 to create system properties needed for the script.
Image4

General Execution:
Image5

Dependencies

Global Parameters

NameExampleRequiredDescription
Ticketing1FalseSet it to '1' to enable ticketing. Leave it blank or '0' to disable it.

User Parameters

NameExampleRequiredDescription
Set_Environment1Need to set to 1 for first-time implementationRunning the script with the user parameter 'Set_Environment' as 1 will import System Properties and EDF's needed for the script.

System Properties

NameExampleRequiredDescription
ThreatLockerAuthKeygfjhdsiopghg-nfdo;hgdf-jdskfl;True (For Windows Deployment)The assigned ThreatLocker authorization key for Windows machines. Follow the instructions to get the group key for the desired machine. Getting your Unique Identifier from ThreatLocker | ThreatLocker Help Center

Client-Level EDF

NameTypeExampleSectionRequiredDescription
Threatlocker_Organization_NameTextProvalThreatlockerTrue (For Windows Deployment)Organization Name to be used for Threatlocker deployment. If deploying to an existing organization, that name must match the organization's name in the ThreatLocker portal.
ThreatLockerMacGroupKeyText1SA2345AASSSS234ThreatlockerTrue (For MAC Deployment)Stores the Threatlocker Group key for Macintosh Machines. Follow the instructions to get the group key for the desired machine. MAC Agent Group Key Location | ThreatLocker Help Center (kb.help)
ThreatlockerGroupIDTextwecccdcd5xsaasdThreatlockerTrue (For AMD Processors)Stores the ThreatLocker GroupID. This EDF was introduced to address deployment issues on AMD processors, as ThreatLocker does not get installed on them unless the GroupID is explicitly defined.

Location-Level EDF

NameTypeSectionRequiredDescription
Exclude ThreatlockerCheckboxThreatlockerFalseMark this EDF to exclude the Location from Threatlocker Deployment

Computer-Level EDF

NameTypeSectionRequiredDescription
Exclude ThreatlockerCheckboxThreatlockerFalseMark this EDF to exclude the agent from Threatlocker

Ticketing

Subject: Threatlocker Deployment Failed for %ClientName%\%ComputerName% at %LocationName%

Ticket Body for Download Failure:

For 32-bit:

Failed to download Threatlocker installer.
Please ensure that the following download URL is reachable from the computer:
https://api.threatlocker.com/updates/installers/ThreatLockerStubX86.exe

For 64-bit:

Failed to download Threatlocker installer.
Please ensure that the following download URL is reachable from the computer: https://api.threatlocker.com/updates/installers/ThreatLockerStubX64.exe

Ticket Body for Installation Failure:

Failed to install Threatlocker
Command Result: %shellresult%

Ticketing parameter should be set to '1' in the Global Parameters of the script to enable the ticket creation feature.
Image6

TicketCreationCategory can be set from the alerting tab of the Internal Monitor Deploy Threatlocker Agent.
Image7