-
Notifications
You must be signed in to change notification settings - Fork 6
sentinelone_install_silent.ps1
Corey Watson edited this page Dec 1, 2025
·
1 revision
Installs SentinelOne agent silently on Windows systems using the MSI installer package.
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.
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.
- 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
-
$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..."
- 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)
- Validates inputs (installer path exists, token provided)
- Validates installer is MSI format
- Executes silent installation with site token
- Monitors installation exit code
- Reports installation status
- 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
- 0: Success - SentinelOne installed successfully
- 1: Failure - Installation failed or validation error
[ 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
- 2025-11-02 v1.0.0 - Initial migration from SuperOps
- View Script Source
- Scripts - Back to script index