Skip to main content

Deploy ConnectSecure Agent [Windows]

Overview

The script performs an installation of the ConnectSecure Vulnerability Scan Agent by securely retrieving the latest installer, executing a silent installation, and registering the endpoint using the provided authentication parameters. It then validates the installation to ensure the agent has been successfully deployed.

The implementation is designed for automated deployment, supports secure content delivery through code-signature validation, and helps ensure endpoints are onboarded to the ConnectSecure platform for continuous vulnerability assessment and security monitoring.

Implementation

  1. Download the component Deploy ConnectSecure Agent [Windows] from the attachments.

  2. After downloading the attached file, click on the Import button

  3. Select the component just downloaded and add it to the Datto RMM interface.
    Image 1

  4. Create the Site Variables mentioned in the document.

Site Variables

  • Go to Setup > Global Settings > Variables
  • Create the below global Variable
NameExampleDescription
cpvalConnectSecureCompanyID123456The unique identifier mapped to the specific company within the ConnectSecure portal.
cpvalConnectSecureTenantID1234567890The top-level tenant identifier for the ConnectSecure environment.
cpvalConnectSecureUserSecretuiohwfnuhfwfwf15fwfg5fereerfrger56545The authentication secret/token required to register the agent to the portal.

Note : To override the global settings, create the variable with same name under
Site > All Sites > Select the site > Settings > Variables > Add Variable

For instructions on obtaining the required IDs for running the script, refer to the Instructions section of this article.

Datto Variables

Variable NameTypeDefaultDescription
ForceBooleanFalseThis forces a re-download and re-installation of the agent even if the CyberCnsAgent service is already detected on the endpoint.

Sample Run

To execute the Deploy ConnectSecure Agent [Windows] over a specific machine, follow these steps:

  1. Select the machine you want to run the Deploy ConnectSecure Agent [Windows] on from the Datto RMM.

  2. Click on the Quick Job button.
    Image 2

  3. Search the component Deploy ConnectSecure Agent [Windows]
    Image 3

  4. Click on Select and then Run
    Image 4

Output

  • Activity log

Attachments

Deploy ConnectSecure Agent [Windows]

Changelog

2026-07-08

  • Initial version of the document