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).
- 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.
- 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.
- Fetch the 'Passphrase' for the endpoint. 'Uninstall/Master Passphrase' can also be used for bulk removal and reinstall.
- Download the latest version of the script from the 'Release' section.
- Copy it to the affected endpoint.
- Open PowerShell and run the script with various options give below by replacing the parameters value:
powershell.exe -ExecutionPolicy Bypass -File "CleanandInstallAgent.ps1" -k "YOUR PASSPHRASE" -t <site_token> -p "<Path where SOI is present>" -n <SOI.exe name>
powershell.exe -ExecutionPolicy Bypass -File "CleanandInstallAgent.ps1" -t <site_token> -p "<Path where SOI is present>" -n <SOI.exe name>
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
$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.