Skip to content

Udish17/SentinelOne_CleanandInstallAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Introduction

The script CleanandInstallAgent.ps1 helps you to remove the SentinelOne Windows Agent and Install it at one execution (even it needs a reboot after removal).

Pre-Requisistes

  1. Copy any SOI.exe version (like SentinelOneInstaller_windows_64bit_v24_1_3_232.exe) to a remote location (to which the endpoints have access) or a local location.
  2. From the SentinelOne console on the endpoint run th task 'Confirm Local Upgrade'. Altrnatively, 'Site Wide Authorization' can also be enabled for bulk removal and reinstall.
  3. Fetch the 'Passphrase' for the endpoint. 'Uninstall/Master Passphrase' can also be used for bulk removal and reinstall.

Instructions

  1. Download the latest version of the script from the 'Release' section.
  2. Copy it to the affected endpoint.
  3. Open PowerShell and run the script with various options give below by replacing the parameters value:

With Passphrase

powershell.exe -ExecutionPolicy Bypass -File "CleanandInstallAgent.ps1" -k "YOUR PASSPHRASE" -t <site_token> -p "<Path where SOI is present>" -n <SOI.exe name>

Without Passphrase

powershell.exe -ExecutionPolicy Bypass -File "CleanandInstallAgent.ps1" -t <site_token> -p "<Path where SOI is present>" -n <SOI.exe name>

With Boot option

powershell.exe -ExecutionPolicy Bypass -File "CleanandInstallAgent.ps1" -k "YOUR PASSPHRASE" -t <site_token> -p "<Path where SOI is present>" -n <SOI.exe name> -b True

Arguments details

$k = Passphrase or Master/Uninstall Passphrase $t = Site Token $p = Path where the SOI.exe is present. It can either a remote share or local path. $n = The name of the SOI.exe like SentinelOneInstaller_windows_64bit_v24_1_3_232.exe $b = Set it to 'True' or 'False', depending on whether to boot the endpoint automatically if the endpoint needs a reboot to complete the removal.

About

This repository contains scripts related to SentinelOne Product

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors