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 Webroot.
Step 1: Create the client custom field
Navigate to Settings -> CRM-> Custom Fields
Add custom field with the following details
Name: Webroot Key
Variable: webrootKey

Step 2: Populate the 'Webroot Key' for each client
Navigate to a specific Client
Click on Custom Fields
Edit 'Webroot Key'
Enter the Webroot Key retrieved from Webroot
Step 3: Create the installer file
Navigate to Settings -> Asset -> Files
Add a File with the following details:
File: Upload the latest MSI installer
Variable: webrootInstaller
Step 4: Create the script
Navigate to Scripts
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
Navigate to Policies
Edit an existing policy that covers the assets you want Webroot installed on
Add the 'โInstall-Webroot' script and set to repeat daily at your preferred time
Distribute the policy
Alternatively, you can add the script as a remediation step for a Service Check E.g.
