Skip to main content

Huntress Agent Deployment

Purpose

This solution is designed to configure the automatic deployment of the Huntress Agent on Windows and Macintosh machines that are missing the agent, using the NinjaOne platform.

Associated Content

Custom Field

ContentTypeAvailable OptionsFunction
cPVAL Huntress DeploymentDrop-downWindows, Windows and Macintosh, DisabledEnables Huntress auto-deployment for Windows or both Windows and Macintosh machines at the organization level.
cPVAL Huntress Install - ExcludeDrop-downYes, NoAllows exclusion of specific locations or devices from Huntress agent auto-deployment.
cPVAL Huntress Account KeyTextStores the Huntress Account Key to associate agents with the correct Huntress account.
cPVAL Huntress Org KeyTextStores the Huntress Organization Key. By default, this is the organization's name, but it can be customized if needed.
cPVAL Huntress TagsTextStores one or more tags, separated by commas (optional).

Automation

ContentFunction
Install Huntress Agent - WindowsInstalls the Huntress agent on Windows machines, retrieving required keys from custom fields if not provided at runtime.
Install Huntress Agent - MacintoshInstalls the Huntress agent on Macintosh machines, retrieving required keys from custom fields.

Compound Conditions

ContentFunction
Install Huntress Agent - WindowsTriggers the Install Huntress Agent - Windows automation on Windows machines where deployment is enabled and Huntress Agent is not installed.
Install Huntress Agent - MacintoshTriggers the Install Huntress Agent - Macintosh automation on Macintosh machines where deployment is enabled and Huntress is not installed.

Implementation

Step 1

Create the following custom fields:

Step 2

Create the following automations:

Step 3

Create the Install Huntress Agent - Windows compound condition for both default agent policies: Windows Server [Default] and Windows Workstation [Default]. The example in the document illustrates the deployment process for the Windows Workstations [Default] agent policy. It is also recommended to apply this compound condition to the Windows Server [Default] agent policy, following the same process.
Image1

Step 4

Create the Install Huntress Agent - Macintosh compound condition for both default agent policies: Mac Server [Default] and Mac [Default]. The example in the document illustrates the deployment process for the Mac [Default] agent policy. It is also recommended to apply this compound condition to the Mac Server [Default] agent policy, following the same process. Image2

FAQ

1. Can the automations be executed manually and independently of the deployment custom fields?

Yes, the automations can be executed manually without relying on the deployment custom fields. If deployment is not enabled or the machine is excluded, the scripts can still be run manually to perform the desired actions.

2. Is the cPVAL Huntress Account Key custom field mandatory for the auto-deployment solution to work?

Yes, the cPVAL Huntress Account Key custom field is mandatory for the auto-deployment solution to function correctly. It is used to associate the Huntress Agent with the appropriate Huntress account.

3. What actions can the Windows script perform, and how are they controlled?

The Windows script can perform installation, repair, uninstallation, or reinstallation of the Huntress Agent for Windows machines. These actions are controlled by the Action runtime parameter of the script, which can be set to Install, Repair, Uninstall, Reinstall, or Reregister.

4. Why is the auto-deployment not working for a client even after enabling it?

If the auto-deployment is not working for a client, verify whether the organization, location, or machines are using a different agent policy. If they are, the compound conditions must be added to those specific agent policies as well to ensure the deployment functions correctly.