Skip to main content

Huntress Agent Manager - Windows

Overview

This script automates the installation, repair, uninstallation, or reinstallation of the Huntress Agent for Windows machines.

Sample Run

Play Button > Run Automation > Script
SampleRun1

Search and select Huntress Agent Manager - Windows
Image1

Set the required arguments and click the Run button to run the script.

  • Run As: System
  • Preset Parameter: <Leave it Blank>
  • Huntress Account Key: Leave it blank or set this variable to override the value stored in the organization-level custom field 'cPVAL Huntress Account Key'
  • Huntress Org Key: Leave it blank or set this variable to override the value stored in the organization-level custom field 'cPVAL Huntress Org Key'
  • Huntress Tags: Leave it blank or set this variable to override the value stored in the organization-level custom field 'cPVAL Huntress Tags'
  • Action: Install
    Image2

Run Automation: Yes
RunAutomation

Dependencies

Parameters

NameRequiredAccepted ValuesDefaultTypeDescription
Huntress Account KeyFalseString/TextSet this variable to override the value stored in the organization-level custom field cPVAL Huntress Account Key
Huntress Org KeyFalseString/TextSet this variable to override the value stored in the organization-level custom field cPVAL Huntress org Key
Huntress TagsFalseString/TextSet this variable to override the value stored in the organization-level custom field cPVAL Huntress Tags
ActionFalseInstall, Reregister, Reinstall, Uninstall, RepairInstallDrop-DownChoose the action to perform. By default, the script is set to perform installation

Automation Setup/Import

Automation Configuration

Output

  • Activity Details

Changelog

2026-06-02

  • Fixed the powershell to not throw errors if account key is not provided in case of uninstallation.
  • Added feature to uninstall the Huntress when required.
  • Renamed the script from 'Install Huntress Agent - Windows' to 'Huntress Agent Manager - Windows'
  • Updated the document as per our new template.

2025-05-30

  • Uninstaller was not removing the entries from uninstall registry keys. Added a code-block at the end of the script to fix it.

2025-04-11

  • Initial version of the document