SentinelOne Deployment
Summary
This task deploys the SentinelOne agent on Windows, Linux, and Mac machines.
Sample Run


Dependencies
Variables
| Name | Description |
|---|---|
| S1SiteToken | Site Token to install SentinelOne agent |
| Output | Output of the previously executed PowerShell script. |
Task Creation
Create a new Script Editor style script in the system to implement this task.
Name: SentinelOne Deployment
Description: This task deploys the SentinelOne agent on Windows, Linux, and Mac machines.
Category: Security
Task
Navigate to the Script Editor section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.
A blank function will appear.
Row 1 Logic: If/Then/Else
ROW 1a Condition: Custom Field Contains
Select the Custom Field from the dropdown menu.
Search and select the SentinelOne Group Key custom field, type NA in the comparator, change "Contains" to "Does Not Equal," and press Enter.
ROW 1b Function: Set Pre-defined Variable
Search and select the Set Pre-defined Variable function.
The following function will pop up on the screen:
- Type
S1SiteTokenin theVariable Namefield. - Select the
Custom Fieldradio button. - Search and select the Site-level
SentinelOne Group Keycustom field in theSearch Custom Fieldfield. - Click the
Savebutton to save the changes. - Select
Windowsas the Operating System.
ROW 1c Function: Set Pre-defined Variable
Repeat the Row 1b steps but limit the pre-defined variable to Mac machines.
ROW 1d Function: Set Pre-defined Variable
Repeat the Row 1b steps but limit the pre-defined variable to Linux machines.
ROW 1e Logic: If/Then/Else
Add if/then/else logic in the else section.
ROW 1e(i) Condition: Custom Field Contains
Select the Custom Field from the dropdown menu inside the If section of the inner if/else.
Search and select the SentinelOne Site Key custom field, type NA in the comparator, change "Contains" to "Does Not Equal," and press Enter.
ROW 1e(ii) Function: Set Pre-defined Variable
Search and select the Set Pre-defined Variable function inside the If section of the inner if/else.
The following function will pop up on the screen:
- Type
S1SiteTokenin theVariable Namefield. - Select the
Custom Fieldradio button. - Search and select the Site-level
SentinelOne SiteKeycustom field in theSearch Custom Fieldfield. - Click the
Savebutton to save the changes. - Select
Windowsas the Operating System.
ROW 1e(iii) Function: Set Pre-defined Variable
Repeat the ROW 1e(ii) steps but limit the pre-defined variable to Mac machines.
ROW 1e(iv) Function: Set Pre-defined Variable
Repeat the ROW 1e(ii) steps but limit the pre-defined variable to Linux machines.
ROW 1e(v) Function: Script Exit
Click the Add Row button inside the else section of the inner if/else.
Search and select the Script Exit function in the newly appeared row.
The following function will pop up on the screen:
Type the below error message inside the Error Message box and hit save.
ROW 1e(vi) Function: Script Exit
Repeat the ROW 1e(v) steps but limit the Script Exit function to Mac machines.
ROW 1e(vii) Function: Script Exit
Repeat the ROW 1e(v) steps but limit the Script Exit function to Linux machines.
Row 2 Function: PowerShell Script
Add a new row by clicking on the Add Row button.
A blank function will appear.
Search and select the PowerShell Script function.
The following function will pop up on the screen:
Paste in the following PowerShell script and leave the expected time of script execution to 300 seconds. Click the Save button.

Limit this PowerShell function to run on Windows machines only.
Row 3 Function: Bash Script
Add another row and select the Bash Script function.
The following function will pop up on the screen:
Paste in the following Bash script and leave the expected time of script execution to 300 seconds. Click the Save button.

Limit the bash file to run on Mac machines only.
Row 4 Function: Bash Script
Add another row and select the Bash Script function.
The following function will pop up on the screen:
Paste in the following Bash script and leave the expected time of script execution to 300 seconds. Click the Save button.

Limit the bash file to run on Linux machines only.
Row 5 Function: Set Custom Field
Add a new row by clicking the Add Row button.
Search and select the Set Custom Field function.
Search and select SentinelOne Deployment Result in the Search Custom Field field, set %output% in the Value field, and click the Save button.
Limit the function to Windows machines.
Row 6 Function: Set Custom Field
Repeat the Row 5 steps but limit the function to Mac machines.
Row 7 Function: Set Custom Field
Repeat the Row 5 steps but limit the function to Linux machines.
Completed Script


Deployment
This task has to be scheduled on the SentinelOne Deployment group for auto deployment. The script can also be run manually if required.
Go to Automations > Tasks.
Search for SentinelOne Deployment.
Then click on Schedule and provide the parameters detail as necessary for the script completion.

Output
- Script Log
- Custom Field
Changelog
2025-04-10
- Initial version of the document