Skip to content

sentinelone_install_silent.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

sentinelone_install_silent.ps1

Installs SentinelOne agent silently on Windows systems using the MSI installer package.

Overview

Installs SentinelOne agent silently on Windows systems using the MSI installer package. Requires a valid SentinelOne site token for agent registration with the management console. Designed for mass deployment via RMM platforms.

Purpose

This script automates the silent installation of the SentinelOne endpoint protection agent on Windows systems. It validates the installer file, executes the MSI installation with the provided site token, and reports the installation status. The script is designed for unattended execution through RMM platforms.

Prerequisites

  • Windows PowerShell 5.1 or PowerShell 7+
  • Administrator privileges (required for agent installation)
  • SentinelOne MSI installer downloaded locally
  • Valid site token from SentinelOne console
  • No modules required

Configuration

Required Inputs

  • $installerPath - Full path to SentinelOne MSI installer

    • Must be a valid .msi file
    • Example: "C:\Temp\SentinelInstaller.msi"
  • $siteToken - SentinelOne site token for agent registration

    • Obtained from SentinelOne console > Sentinels > Site Token
    • Must be valid for the target site
    • Example: "eyJ1cmwiOiAiaHR0cHM6Ly91c2VhMS0wMDEuc2VudGluZWxvbmUubmV0..."

Settings

  • Installation mode: Silent (/qn flag)
  • Installer: Windows MSI (msiexec.exe)
  • Site registration: Automatic using provided token
  • User interaction: None required
  • Reboot: Not forced (agent will activate on next reboot if needed)

Behavior

  1. Validates inputs (installer path exists, token provided)
  2. Validates installer is MSI format
  3. Executes silent installation with site token
  4. Monitors installation exit code
  5. Reports installation status

Security Notes

  • Site token is logged but not displayed (use RMM secure variables in production)
  • Installer must be from trusted source only
  • Agent establishes outbound connection to SentinelOne cloud
  • No secrets displayed in console output

Exit Codes

  • 0: Success - SentinelOne installed successfully
  • 1: Failure - Installation failed or validation error

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Validating configuration...
Installer path : C:\Temp\SentinelInstaller_windows_64bit.msi
Installer type : MSI
Site token     : Configured
Input validation passed

[ INSTALLATION ]
--------------------------------------------------------------
Starting SentinelOne installation...
Installation mode : Silent
Using site token  : Yes
Installing...
Installation completed

[ FINAL STATUS ]
--------------------------------------------------------------
Installation exit code : 0
Installation status    : Success

[ SCRIPT COMPLETED ]
--------------------------------------------------------------
Script completed successfully
Exit code : 0

Version History

  • 2025-11-02 v1.0.0 - Initial migration from SuperOps

Links

Clone this wiki locally