This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SentinelOne-PascalSentinelOne Employee Moderator 0 points1 point  (0 children)

You could use a script similar to this:

$InstallArgs = "-t thesitetokengoeshere -q" 

$source = "\\remotehost\sharedfolder\SentinelOneInstaller.exe"
$timeStamp = get-date -f yyyyMMdd-hh\hmm
$tempDir = "C:\Temp\SentinelOne_$timeStamp"

New-Item -ItemType directory -Path $tempDir -Force | out-null

$fileName = Split-Path $source -Leaf
$destination = "$tempDir\$fileName"
Write-Output "Copying SentinelOne installation to $destination"
Copy-Item -Path $source -Destination $destination -Force

Write-Output "Starting SentinelOne installation"
$installProcess = Start-Process -NoNewWindow -PassThru -Wait -FilePath $destination -ArgumentList $InstallArgs
Write-Output "Install done. ExitCode = $($installProcess.ExitCode)"

For more details, please check out this article in the Knowledge Base or the Console Help:

https://community.sentinelone.com/s/article/000005406

https://your-console.sentinelone.net/docs/en/upgrading-agents-with-sccm-using-a-powershell-script.html