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

Search and select Huntress Agent Manager - Windows

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

Run Automation: Yes
Dependencies
- Solution : Huntress Agent Deployment
- cPVAL Huntress Account Key
- cPVAL Huntress Org Key
- cPVAL Huntress Tags
- InstallHuntress.powershellv2.ps1
Parameters
| Name | Required | Accepted Values | Default | Type | Description |
|---|---|---|---|---|---|
| Huntress Account Key | False | String/Text | Set this variable to override the value stored in the organization-level custom field cPVAL Huntress Account Key | ||
| Huntress Org Key | False | String/Text | Set this variable to override the value stored in the organization-level custom field cPVAL Huntress org Key | ||
| Huntress Tags | False | String/Text | Set this variable to override the value stored in the organization-level custom field cPVAL Huntress Tags | ||
| Action | False | Install, Reregister, Reinstall, Uninstall, Repair | Install | Drop-Down | Choose the action to perform. By default, the script is set to perform installation |
Automation Setup/Import
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