Install software using a custom client field (SentinelOne)

SentinelOne, Cove, DNSFilter etc.

Written By Mikel from Gorelo

Custom client fields can be used in scripts to install software with client specific info (keys, tokens etc.).

In this example, we'll use SentinelOne.

Step 1: Create the client custom field

  1. Navigate to Settings -> CRM-> Custom Fields

  2. Add custom field with the following details

    • Name: SentinelOne Site Token

    • Variable: s1token

Step 2: Populate the 'SentinelOne Site Token' for each client

  1. Navigate to a specific Client

  2. Click on Custom Fields

  3. Edit 'SentinelOne Site Token'

  4. Enter the Site Token retrieved from SentinelOne

You can retrieve your SentinelOne Site Token from https://<DomainName>.sentinelone.net/dashboard -- navigate to a Site, then to the 'Site Info' tab

Step 3: Create the installer file

  1. Navigate to Settings -> Asset -> Files

  2. Add a File with the following details:

    • File: Upload the latest MSI installer

    • Variable: S1Installer

Step 4: Create the script

  1. Navigate to Scripts

  2. Create a script with the following details:

    • Name: โž•Install-SentineOne

    • Content:

Example
#Silently install SentinelOne if($gorelo:client.s1token){ $S1Service = get-service -Name 'Sentinel Agent' -ErrorAction SilentlyContinue if($S1Service -eq $null){ msiexec /i $gorelo:file.S1Installer SITE_TOKEN=$gorelo:client.s1token /quiet /norestart } }

Step 5: Deploy the script via a policy

  1. Navigate to Policies

  2. Edit an existing policy that covers the assets you want SentinelOne installed on

  3. Add the 'โž•Install-SentineOne' script and set to repeat daily at your preferred time

  4. Distribute the policy