emsisoft_install_via_url.ps1 - limehawk/rmm-scripts GitHub Wiki

emsisoft_install_via_url.ps1

Downloads and installs Emsisoft Anti-Malware from a specified URL.

Overview

Downloads and installs Emsisoft Anti-Malware from a specified URL. This script is designed for deployments where the Emsisoft installer is hosted on a web server or cloud storage and needs to be deployed to endpoints via RMM.

Purpose

Downloads and installs Emsisoft Anti-Malware from a specified URL. This script is designed for deployments where the Emsisoft installer is hosted on a web server or cloud storage and needs to be deployed to endpoints via RMM.

Prerequisites

  • Windows PowerShell 5.1 or PowerShell 7+
  • Internet connectivity to download URL
  • Administrator privileges recommended (for installation)
  • Sufficient disk space for installer download

Configuration

Required Inputs

$installerUrl - Full URL to Emsisoft installer executable

$downloadPath - Local directory to download installer to

  • Default: $env:TEMP
  • Must exist and be writable

Settings

  • Download location: %TEMP% directory by default
  • Installer is executed immediately after download
  • Downloaded installer is NOT deleted after execution
  • No installation flags are passed (interactive install)

Data Sources & Priority

  1. Hardcoded download URL - Must point to valid Emsisoft installer
  2. Local temp directory - Default download location ($env:TEMP)

Behavior

  1. Validates inputs (URL format, download path exists)
  2. Extracts filename from URL
  3. Downloads installer from specified URL
  4. Verifies download completed successfully
  5. Executes the installer
  6. Reports final status

Security Notes

  • No secrets logged or displayed
  • Ensure download URL is from trusted source only
  • Downloaded file is executed immediately - validate URL before use
  • Consider using HTTPS URLs for secure downloads

Exit Codes

  • 0 - Success (installer downloaded and executed)
  • 1 - Failure (error during download or execution)

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Validating configuration...
Download URL  : https://example.com/EmsisoftSetup.exe
Download path : C:\Users\Admin\AppData\Local\Temp
Input validation passed

[ DOWNLOAD ]
--------------------------------------------------------------
Downloading installer...
Source URL   : https://example.com/EmsisoftSetup.exe
Target file  : C:\Users\Admin\AppData\Local\Temp\EmsisoftSetup.exe
Download completed successfully

[ INSTALLATION ]
--------------------------------------------------------------
Launching installer...
Installer started : EmsisoftSetup.exe

[ FINAL STATUS ]
--------------------------------------------------------------
Download successful : Yes
Installer launched  : Yes

[ SCRIPT COMPLETED ]
--------------------------------------------------------------
Script completed successfully
Exit code : 0

Version History

  • v1.0.0 (2025-11-02) - Initial migration from SuperOps

Links