Skip to main content

Install-SnapAgent

Description

Installs SnapAgent on Windows computers.

Requirements

  • PowerShell v5+
  • Installer package URL

Usage

  • Checks if the URL is provided.
  • If not, it logs that the URL is missing.
  • If the URL is detected, it downloads snap_agent_installer.exe to the working directory C:\ProgramData\_automation\app\SnapAgent.
  • It then validates the downloaded installer package.
  • If downloaded, it executes the command to install it.
  • After execution, it sleeps for 30 seconds and then checks if SnapAgent is installed.
  • If not found, it checks the installation directory C:\Program Files (x86)\Blackpoint\SnapAgent\Snap_Agent.exe.
  • If not found, it logs the error to the file .\Install-SnapAgent-Error.txt.
  • If detected, it executes SnapAgent from there and monitors its appearance in the Programs and Features for three instances with a delay of 60 seconds each.
  • If SnapAgent still doesn't show up, it logs the error to the file .\Install-SnapAgent-Error.txt.
  • For all checks, it logs information to the file .\Install-SnapAgent-Log.txt.

Installs SnapAgent. A URL is necessary to install it.

.\Install-SnapAgent.ps1 -URL 'ProvideURL'

Parameters

ParameterAliasRequiredDefaultTypeDescription
URLTrueStringThe URL needed to install the SnapAgent

Output

  • .\Install-SnapAgent-Log.txt
  • .\Install-SnapAgent-Error.txt