Agnostic - Install-SnapAgent
Overview
This document outlines the process to install SnapAgent on Windows computers.
Requirements
- PowerShell v5+
- Installer package URL
Process
- Check if the URL is provided.
- If not, log that the URL is missing.
- If the URL is detected, download the
snap_agent_installer.exe
to the working directoryC:/ProgramData_automation/app/SnapAgent
. - Validate the downloaded installer package.
- If the package is valid, execute the command to install it.
- After execution, pause for 30 seconds and then validate whether SnapAgent is installed.
- If SnapAgent is not found, check the installation directory
C:/Program Files (x86)/Blackpoint/SnapAgent/Snap_Agent.exe
. - If not found, log the error in the file
./Install-SnapAgent-Error.txt
. - If detected, execute SnapAgent from this location and monitor its appearance in the Programs and Features list three times with a delay of 60 seconds each.
- If SnapAgent still does not appear, log the error in the file
./Install-SnapAgent-Error.txt
. - Throughout the process, log information to the
./Install-SnapAgent-Log.txt
file.
Payload Usage
To install SnapAgent, a URL is necessary.
./Install-SnapAgent.ps1 -URL 'ProvideURL'
Parameters
Parameter | Alias | Required | Default | Type | Description |
---|---|---|---|---|---|
URL | True | String | The URL needed to install the SnapAgent |
Output
./Install-SnapAgent-Log.txt
./Install-SnapAgent-Error.txt