Skip to content
All guides

Deploying with Kandji

This guide uses the macOS files from the console's Settings → Deploy page (see the file list). Create the enrollment token right before you start: files that contain it can be downloaded for 10 minutes.

Kandji renames menus from time to time. If a name below doesn't match, look for the closest item in the Library.

1. Profiles

In Library → Add new → Custom Profile, add one item for each profile:

Profile Contains token
trakkwise-agent.mobileconfig (agent settings) yes
com.trakkwise.agent.pppc.mobileconfig (privacy, so the agent can read AI tool configs) no
trakkwise-chrome.mobileconfig (force-installs the Chrome extension) yes
trakkwise-edge.mobileconfig (force-installs the Edge extension) yes

Add the Edge profile only if people use Edge. Install the profiles at the device level. The settings profile's UserEmail is $EMAIL, which Kandji fills in with the Mac's assigned user, so the agent's activity counts under their email. Assign users to Macs in Kandji for this to work.

2. The agent

Choose one:

  • Custom App: Library → Add new → Custom App, upload TrakkwiseAgent.pkg, and set the install type to package. Choose to install once per device, or enforce it so Kandji reinstalls it if it's removed.

  • Custom Script: Library → Add new → Custom Script, with trakkwise-install.sh as the script. This always downloads the latest signed release and checks its signature before installing. Kandji runs the install script when the audit script exits non-zero. This audit script exits 0 when the agent is installed, running and enrolled, the same checks as trakkwise-extension-attribute.sh:

    #!/bin/bash
    AGENT="/Library/Application Support/Trakkwise/bin/trakkwise-agent"
    [ -x "$AGENT" ] || exit 1
    launchctl print system/com.trakkwise.agent >/dev/null 2>&1 || exit 1
    "$AGENT" status -json 2>/dev/null | grep -q '"enrolled": *true'
    

    Set it to run on every check-in so Kandji repairs Macs where the agent was removed or stopped.

3. Assign to a Blueprint

Add the profiles and the app or script to the Blueprint for your test Macs. Check that the Macs appear under Devices in the Trakkwise console (usually within a few minutes of the Kandji check-in), then add the items to your other Blueprints.

4. Check health

On a Mac, sudo "/Library/Application Support/Trakkwise/bin/trakkwise-agent" status -json shows the version, enrollment and last scan. In Kandji, the audit script's result on each device shows which Macs need attention.

Rotating the token

Create a new token on Settings → Deploy, download the settings and browser profiles again, and replace the files in the Custom Profile items. Enrolled Macs keep working; only new enrollments use the new token.

Removing Trakkwise

Run trakkwise-uninstall.sh as a Custom Script on the Macs, then remove the profiles and the app or install script from the Blueprint.