Deploy the agent to your fleet

Step-by-step guides to roll Kuntur out to many computers with the tools you already use, without contacting us. Every command on this page matches what the current installers accept.

Try it on one computer first

Before rolling out, see what AI is on one Windows, macOS or Linux computer. No admin rights, no account; the report stays on the machine. Step by step, with the SHA-256 check · what the scanner does.

Windows (PowerShell):

irm https://app.kuntur.io/scan.ps1 | iex

macOS or Linux (Terminal):

curl -fsSL https://app.kuntur.io/scan.sh | sh
Before you startToken, key, server URL Windows · IntuneWin32 app or script Windows · GPOActive Directory Windows · manual / RMMmsiexec or PowerShell macOSKandji, Jamf, Intune LinuxScript or Ansible TagsGroup computers VerifyDid it show up? Bulk uninstallAnd uninstall protection

Before you start

Sign in to the console and open Deploy agents (Desplegar agentes in the sidebar). You will find two kinds of credentials there:

Policy files with a token. In Deploy agents → Mass deployment, choose an enrollment token under Credential in policy files (or General key (legacy)) and paste its value: the generated .reg, .mobileconfig and managed.json then carry TenantID + EnrollToken. The token is sent to the server in the request body, checked against its stored hash, and never logged. A revoked, expired or used-up token cannot be used to generate files, and a device that receives one by policy will not enroll.

Precedence. If a device receives both a token and the general key (for example an old GPO plus a new one), the agent uses the token and does not send the key.

Each agent uses the token or key only once, on first start, to obtain its own credential. On Windows the agent deletes the enrollment token from the registry after enrolling.

Server URL. The cloud service is https://app.kuntur.io, and release builds of the agent have it built in, so the MSI only needs TENANT_ID and ENROLL_TOKEN. If you run Kuntur self-hosted, add KUNTUR_SERVER=<YOUR_SERVER_URL> to MSI commands and replace https://app.kuntur.io in the script URLs below; the console already shows the right URL for your server.

Packages. The Deploy agents page lists the files your server publishes under /downloads/: the Windows MSI (kuntur-agent-<version>-x64.msi), the ADMX templates (kuntur-admx-<version>.zip), DEB and RPM packages, and standalone binaries. Anything that is not published is labelled as such there.

Network. Endpoints only need outbound HTTPS to the server URL (/api/v1/agent/* and /downloads/*).

Code signing, honestly. The Windows MSI and agent binaries are not signed with Authenticode yet. Windows SmartScreen may warn when someone runs the installer by hand, and some EDR or application-control policies may require you to allow the file by hash or path (C:\Program Files\Kuntur\kuntur-agent.exe). Silent installs from Intune, GPO or an RMM do not show the SmartScreen prompt. The macOS package and binary can be signed and notarized by the build, but are not signed unless the build was configured to do so; see the macOS notes below. Release binaries come with Sigstore (cosign) signatures and SHA-256 checksums on GitHub.

Roll out in rings. Start with IT and Security, then a small percentage, then everyone. Use a different token label and a tag such as ring=1 per ring so you can see and stop each stage.

Windows with Microsoft Intune

Best when you want Intune to report install state and handle uninstall.

  1. Download the MSI from Deploy agents and wrap it with Microsoft's Win32 Content Prep Tool (IntuneWinAppUtil.exe) into a .intunewin file.
  2. In Intune: Apps → Windows → Add → Windows app (Win32) and upload the .intunewin.
  3. Install command:
    msiexec /i kuntur-agent-<version>-x64.msi /qn TENANT_ID=<TENANT_ID> ENROLL_TOKEN=<ENROLLMENT_TOKEN> KUNTUR_TAGS="dept=engineering,ring=1"
    KUNTUR_TAGS is optional.
  4. Uninstall command: msiexec /x {<PRODUCT_CODE>} /qn. Intune fills in the product code of an MSI in a Win32 app; the code changes with every build, so take it from the version you upload. If uninstall protection is on, see Bulk uninstall.
  5. Install behavior: System. Detection rule: MSI (product code), or File C:\Program Files\Kuntur\kuntur-agent.exe exists.
  6. Assign as Required to a device group.

Windows with Group Policy (Active Directory)

  1. Copy Kuntur.admx to \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions\ and en-US\Kuntur.adml to its en-US subfolder.
  2. In a GPO linked to the target OU: Computer Configuration → Policies → Administrative Templates → Kuntur. Set the server URL, Tenant ID (<TENANT_ID>), Enrollment token (<ENROLLMENT_TOKEN>, recommended) and the tags. Legacy: set Enrollment key (<ENROLLMENT_KEY>) instead of tenant + token.
  3. Put the MSI on a share readable by domain computers, e.g. \\fileserver\kuntur\kuntur-agent-<version>-x64.msi.
  4. Computer Configuration → Policies → Software Settings → Software installation → New → Package, choose the MSI from the UNC path, deployment method Assigned.
  5. Computers install the agent at the next restart (or after gpupdate /force and a restart).

Without ADMX you can import the Policy .reg file generated in Deploy agents (it writes the same values under HKLM\SOFTWARE\Policies\Kuntur\Agent), for example with Group Policy Preferences. Choose an enrollment token before downloading it and the file writes TenantID and EnrollToken; with General key (legacy) it writes EnrollmentKey.

Windows manually or with an RMM

MSI (recommended for RMM, SCCM/MECM, PDQ and similar)

Run as SYSTEM or an administrator:

msiexec /i kuntur-agent-<version>-x64.msi /qn TENANT_ID=<TENANT_ID> ENROLL_TOKEN=<ENROLLMENT_TOKEN>

Optional properties: KUNTUR_TAGS="dept=engineering,ring=1", and KUNTUR_SERVER=<YOUR_SERVER_URL> for self-hosted servers. With the organization key instead of a token: KUNTUR_KEY=<ENROLLMENT_KEY>.

PowerShell one-liner

In PowerShell as Administrator (or from an RMM running as SYSTEM):

& ([scriptblock]::Create((irm https://app.kuntur.io/install.ps1))) -TenantId <TENANT_ID> -Token <ENROLLMENT_TOKEN>

Optional: -Tags "dept=engineering,ring=1". With the organization key: -Key <ENROLLMENT_KEY>. The script handles x64 and ARM64. Use the MSI when your tool needs to track or remove the install later.

macOS with Kandji, Jamf or Intune

Two pieces: a configuration profile (server, tenant ID + enrollment token or the legacy key, tags) and the package or install script. Assign the profile before the package.

Package availability and signing. The universal kuntur-agent-<version>.pkg is built on macOS and is only listed in Deploy agents if your server publishes it. If it is not listed, use the install script method below. The package and binary are signed and notarized only when the build has Developer ID credentials configured; an unsigned package may be rejected by Gatekeeper when opened by hand, and the optional Full Disk Access (PPPC) payload needs a signed binary.

  1. In Deploy agents, type your tags, choose an enrollment token under Credential in policy files (recommended; or General key (legacy)) and download Profile .mobileconfig. It already contains the server URL, TenantID + EnrollToken (or EnrollmentKey) and the tags.
  2. Library → Add new → Custom Profile, upload the .mobileconfig, assign it to a Blueprint.
  3. Library → Add new → Custom Script (runs as root), same Blueprint, with the script from Install script.
  4. Once Deploy agents lists a .pkg, you can use Library → Add new → Custom App with it instead of step 3. Its postinstall loads the kuntur-agent launch daemon.

Install script (any MDM, or by hand)

Runs as root, downloads the agent for the Mac's architecture to /usr/local/bin/kuntur-agent and installs it as a launch daemon. The token goes through the environment, not the process list:

curl -fsSL https://app.kuntur.io/install.sh | sudo env KUNTUR_TENANT_ID=<TENANT_ID> KUNTUR_ENROLL_TOKEN=<ENROLLMENT_TOKEN> sh

In an MDM script that already runs as root you can drop sudo. To add tags: ... sh -s -- --tags dept=engineering,ring=1. With the organization key: curl -fsSL https://app.kuntur.io/install.sh | sudo sh -s -- --key <ENROLLMENT_KEY>.

Full Disk Access (optional). Needed only to read Safari history. Deploy a PPPC profile granting SystemPolicyAllFiles to /usr/local/bin/kuntur-agent; this requires the binary to be signed with a Developer ID (see the template deploy/macos/kuntur.mobileconfig.template in the repository).

Linux with a script or Ansible

Script (one server or any configuration tool)

curl -fsSL https://app.kuntur.io/install.sh | sudo env KUNTUR_TENANT_ID=<TENANT_ID> KUNTUR_ENROLL_TOKEN=<ENROLLMENT_TOKEN> sh

Supports amd64 and arm64. Tags: append -s -- --tags dept=engineering,ring=1 after sh.

Package + policy file

Download the DEB or RPM and managed.json (generated with your tags and the selected enrollment token, or the general key as legacy) from Deploy agents:

sudo install -D -m 600 managed.json /etc/kuntur/managed.json
sudo apt install ./kuntur-agent_<version>_amd64.deb     # or: sudo dnf install ./kuntur-agent-<version>-1.x86_64.rpm

The package enables the kuntur-agent systemd unit and starts it once /etc/kuntur/managed.json exists.

Ansible

The repository includes deploy/ansible/kuntur-agent.yml. It writes /etc/kuntur/managed.json (mode 600), installs the DEB or RPM from your server's /downloads/ and enables the service:

ansible-playbook -i inventory kuntur-agent.yml \
  -e kuntur_server=https://app.kuntur.io \
  -e kuntur_tenant_id=<TENANT_ID> -e kuntur_enroll_token=<ENROLLMENT_TOKEN>

Keep kuntur_enroll_token in Ansible Vault. Legacy alternative: -e kuntur_key=<ENROLLMENT_KEY> instead of tenant + token; if both are set, the agent uses the token.

Set tags per group in group_vars, e.g. kuntur_tags: ["dept=engineering", "ring=1"]. The playbook defaults kuntur_collect_web_usage to false (servers rarely have a browser) and pins kuntur_version; set it to the version your server publishes.

Grouping computers with tags

Tags are free-form labels the agent sends when it enrolls and with every report. Use key=value pairs separated by commas, for example dept=engineering,site=hq,ring=1.

MethodHow to set tags
MSIKUNTUR_TAGS="dept=engineering,ring=1"
install.ps1-Tags "dept=engineering,ring=1"
install.sh--tags dept=engineering,ring=1
ADMX / GPO / Intune / .regTags policy (comma-separated)
.mobileconfig / managed.jsonType the tags in Deploy agents before downloading
Ansiblekuntur_tags list

In the console, tags appear in the Endpoints list and on each computer's page, and the endpoint search matches them. A policy value (GPO, Intune, MDM profile, managed.json) wins over the installer's value, so you can re-tag a group by changing the policy.

Combine tags with one enrollment token per group (labelled, for example, "Pilot group"): the token list shows how many computers used each token, and you can revoke one group's token without affecting others.

Verify the computer appeared

  1. In the console, open Endpoints. A new computer usually shows up within one or two minutes after the agent starts, with its hostname, OS, agent version, tags and last report time.
  2. In Deploy agents → Enrollment tokens, the Uses column of the token goes up with each enrolled computer.
  3. On the computer itself, check the service and the effective configuration (each value shows the source it came from):
    # Windows (PowerShell as Administrator)
    & "C:\Program Files\Kuntur\kuntur-agent.exe" status
    & "C:\Program Files\Kuntur\kuntur-agent.exe" config
    
    # macOS / Linux (script install: /usr/local/bin, DEB/RPM: /usr/bin)
    sudo kuntur-agent status
    sudo kuntur-agent config

Not showing up? Check outbound HTTPS to the server URL, that the token is not revoked, expired or out of uses, and that the plan has endpoints left. If a proxy or TLS inspection is in the way, set Proxy URL and CA file by policy.

Bulk uninstall

Remove the agent from the same tool that deployed it:

Deployed withUninstall
Intune Win32 / LOB appChange the assignment to Uninstall (runs msiexec /x {<PRODUCT_CODE>} /qn)
GPO software installationRemove the package with Immediately uninstall the software from users and computers
RMM / SCCMmsiexec /x {<PRODUCT_CODE>} /qn or msiexec /x kuntur-agent-<version>-x64.msi /qn
install.ps1& "C:\Program Files\Kuntur\kuntur-agent.exe" uninstall
macOS (pkg or script)sudo sh uninstall.sh (deploy/macos/uninstall.sh; use it as the uninstall script in Kandji or a Jamf policy)
Linux DEB/RPM, Ansiblesudo apt remove kuntur-agent / sudo dnf remove kuntur-agent
install.shsudo kuntur-agent uninstall

Uninstalling stops future reports. Data already sent stays in the console until your retention settings or a deletion request remove it.

If the tenant has uninstall protection

Uninstall protection is off by default. An administrator can turn it on in Deploy agents → Uninstall protection; agents apply it at their next report. From then on, removing the agent requires a token:

Without a valid token the uninstall fails and the agent keeps running. Pass the token like this:

# Windows (MSI; Intune uninstall command, RMM, SCCM)
msiexec /x {<PRODUCT_CODE>} /qn UNINSTALL_TOKEN=<UNINSTALL_TOKEN>

# macOS
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> sh uninstall.sh

# Linux packages
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> apt remove kuntur-agent

# Any OS, agent installed by script
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> kuntur-agent uninstall

On Windows, set the Intune Win32 app's uninstall command to include UNINSTALL_TOKEN before you switch the assignment to Uninstall. A GPO software removal cannot pass properties, so with protection on, either turn protection off first (agents apply it at their next report) or uninstall with msiexec from a script or RMM. Upgrades and repairs never ask for the token.

Uninstall protection stops casual removal by users. It does not stop a determined local administrator.