Silent and MDM deployment
How to install, register and remove the agent without anyone clicking through a dialog: with a software-distribution or device-management tool, a script or an image. This page only gives the commands and settings the agent itself supports. How to wrap them in your tool (Intune, Jamf, group policy and others) is up to that tool.
In short
Windows: msiexec /i xtna-agent.msi /qn. macOS: installer -pkg. Then register with a Creation Token (xtna-util -domain ... -token ... for assets, xtna-util -create-client ... for clients), run as an administrator or as root/SYSTEM. iOS and Android: the MDM sets the account in the app's managed configuration (email, domain).
Before you start
- Create a token in the Admin Console under Settings > Enrollment: an Asset Creation Token for assets, a Client Creation Token for clients. A token carries the policies, tags and enabled state that new devices get. See Registration methods.
- Your tool must run the commands with administrator rights:
rooton macOS and Linux,SYSTEMor an administrator on Windows. See Requirements. - Do not include
/etc/XplicitTrust/and/etc/xt-machine-idin an image or template: every device needs its own identity.
Windows
Download xtna-agent.msi and run the following. Wait about 30 seconds before the next step:
msiexec /i xtna-agent.msi /qn
winget install XplicitTrust.Agent
Then register the device:
xtna-util -domain <tenant domain> -token <token> -name <name>
After a headless installation the asset is fully configured and appears as Online in the Admin Console.
xtna-util -create-client -user <email> -token <token>
Without a token, the user enters their email address in the app.
The flags for names, tags and policies are on Registration methods.
Remove
The Windows uninstall script works without interaction with -Force and -NoPause:
powershell -ExecutionPolicy Bypass -File .\Remove-XplicitTrustAgent.ps1 -PurgeConfig -Force -NoPause
Exit codes: 0 success, 3010 success but a reboot is required, 1 failure. Without -PurgeConfig, the enrollment is kept for a reinstall. With winget: winget uninstall XplicitTrust.Agent.
macOS
Download the installer for the chip (Intel, Apple Silicon) and install it from the command line, as root:
sudo installer -pkg xtna-agent_arm64.pkg -target /
Then register the device:
sudo /usr/local/bin/xtna-util -domain <tenant domain> -token <token>
sudo /usr/local/bin/xtna-util -create-client -user <email> -token <token>
To remove the agent, run sudo xtna-uninstaller.
For single sign-on of the agent with Intune and Entra ID, see Single sign-on with Entra ID.
Linux
Install the package and register with a token, as root. For example on Debian-based systems:
ARCH=$(dpkg --print-architecture)
wget https://dl.xplicittrust.com/xtna-agent_${ARCH}.deb
apt -y install ./xtna-agent_${ARCH}.deb
/usr/sbin/xtna-util -domain <tenant domain> -token <token>
The commands for RPM-based systems and the desktop client are on Linux, Linux desktop and Linux terminal.
Machine images and cloned machines
An image or a clone that already holds a registration would register as the same device. Either leave /etc/XplicitTrust/ and /etc/xt-machine-id out of the image, or run on the clone, before it registers:
xtna-util -reset-host-id
It clears the client configuration and resets the host ID. Register the machine afterwards with -user or -token.
iOS and Android
An MDM can set the account in the app through the app's managed configuration (managed app configuration on iOS, app restrictions on Android). The app reads these keys:
| Key | Meaning |
|---|---|
email |
The user's work email address. |
domain |
The tenant domain, optional. |
A managed account is the app's only account: users cannot edit or delete it and cannot add another one. On iOS the app takes the login when both email and domain are set. On Android an email is enough. What is locked in each case is described under Accounts on iOS and Android.
The app also reads further keys that the MDM can fill per device, for example with its variables for the serial number. The agent reports the values to XplicitTrust. Android offers the keys serial_number, asset_tag, owner, mdm and note. On iOS any key and value the MDM sets for the app is passed on. They are shown, never trusted as a secret.
Where to enter the keys depends on your MDM: it lists them as the app's configuration or shows them from the app's restrictions.
If it doesn't work
needs root/administrator rights: the tool does not run the command asroot,SYSTEMor an administrator.- A device registers twice, or a clone shows up as its original: see Machine images and cloned machines.
- The device does not get Online: the network requirements.
Next
Verify your installation on one device first, then roll out. Create a policy so that the devices can reach something.
See also
- Concept: Clients and Assets
- Guide: Registration methods, Update, Uninstall
- Reference: xtna-util, Settings: Enrollment