Install software using a custom client field (Webroot)

Written By Mikel from Gorelo

Last updated 23 days ago

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

In this example, we'll use Webroot.

Step 1: Create the client custom field

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

  2. Add custom field with the following details

    • Name: Webroot Key

    • Variable: webrootKey

Step 2: Populate the 'Webroot Key' for each client

  1. Navigate to a specific Client

  2. Click on Custom Fields

  3. Edit 'Webroot Key'

  4. Enter the Webroot Key retrieved from Webroot

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: webrootInstaller

Step 4: Create the script

  1. Navigate to Scripts

  2. Create a script with the following details:

    • Name: ➕Install-SentineOne

    • Content:

Example
# Silently install Webroot if($gorelo:client.webrootKey){ $WebrootService = Get-Service -Name 'WRSVC' -ErrorAction SilentlyContinue if($WebrootService -eq $null){ msiexec /i $gorelo:file.webrootInstaller GUILIC=$gorelo:client.webrootKey CMDLINE=SME,quiet /qn /l*v install.log } }

Step 5: Deploy the script via a policy

  1. Navigate to Policies

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

  3. Add the '➕Install-Webroot' script and set to repeat daily at your preferred time

  4. Distribute the policy

Alternatively, you can add the script as a remediation step for a Service Check E.g.