Veraha Agent with Microsoft Intune
On Windows you deploy the signed MSI as a Win32 app, with a short
PowerShell script that writes enrol.json first. A registry option is below
if you prefer a configuration policy.
Before you start
- In Veraha, go to Settings → Devices → Enrolment keys. Create a key, for example "Intune rollout", with an expiry date. Copy it. It is shown once.
- Download
Veraha-Agent-<version>-x64.msifromhttps://app.veraha.ai/downloads/agent/. It is Authenticode signed and installs for all users (per-machine). - Download Microsoft's Win32 Content Prep Tool (
IntuneWinAppUtil.exe).
1. Make the package
Create a folder with the MSI and this file, install.ps1:
# install.ps1: writes enrol.json, then installs the Veraha Agent MSI.
$Key = 'vek_REPLACE_WITH_YOUR_KEY'
$Dir = Join-Path $env:ProgramData 'Veraha'
New-Item -ItemType Directory -Force -Path $Dir | Out-Null
$Conf = @{ enrolmentKey = $Key } | ConvertTo-Json -Compress
[IO.File]::WriteAllText((Join-Path $Dir 'enrol.json'), $Conf, (New-Object Text.UTF8Encoding($false)))
$Msi = Get-ChildItem -Path $PSScriptRoot -Filter 'Veraha-Agent-*-x64.msi' | Select-Object -First 1
$p = Start-Process msiexec.exe -ArgumentList @('/i', "`"$($Msi.FullName)`"", '/qn', '/norestart') -Wait -PassThru
exit $p.ExitCode
Then run:
IntuneWinAppUtil.exe -c <folder> -s install.ps1 -o <output folder>
2. Add the Win32 app
- In the Intune admin centre open Apps → Windows → Add → Windows app (Win32).
- Upload the
.intunewinfile. - Install command:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File install.ps1 - Uninstall command:
msiexec /x {PRODUCT-CODE} /qn(Intune shows the product code after upload), orpowershell.exe -NoProfile -Command "Get-Package 'Veraha Agent' | Uninstall-Package -Force". - Install behaviour: System. Device restart behaviour: No specific action.
- Return codes: keep the defaults (0 and 3010 are success).
- Detection rule: File. Path
C:\Program Files\Veraha Agent, fileVeraha Agent.exe, rule "File or folder exists". - Assignments: Required, for your device or user groups.
The MSI starts the agent at every sign-in for every user. After the first
sign-in the agent reads enrol.json and connects itself.
Who owns each computer
Intune cannot put each user's email into a Win32 app install. Two options:
- Leave
emailout. Computers show Needs an owner in Veraha and an admin assigns them on the Devices page. - Or ask each person to click Connect this computer on their Veraha onboarding page once. That links the computer to them.
Registry instead of a file (optional)
Instead of writing enrol.json, you can set these values with a PowerShell
platform script, Group Policy Preferences, or a custom OMA-URI policy:
| Key | Value | Type |
|---|---|---|
HKLM\SOFTWARE\Policies\Veraha\Agent |
EnrolmentKey = vek_... |
REG_SZ |
| same | Email (optional) |
REG_SZ |
Then deploy the MSI as a plain Line-of-business app without the script.
Macs in Intune
Add the .pkg as a macOS app (PKG). Add a shell script (Devices →
macOS → Scripts) that writes /Library/Application Support/Veraha/enrol.json;
the script in jamf.md works without the Jamf parameters if you put
the key in it. Run it as root, once.
Privacy
The agent reads security settings only. It never reads files, browsing history or messages. The full list is at https://veraha.ai/agent/data.
Check it worked
In Veraha open Devices. Each computer shows up within a few minutes of the first sign-in after install.
Updates
Upload the new MSI as a new version of the Win32 app, with supersedence on the old one. MSI installs do not update themselves.
Uninstall
Uninstall the app from Intune (assignment Uninstall). The MSI removes the
app, the start-at-login entry, C:\ProgramData\Veraha (with enrol.json)
and each user's agent data and keys. Then delete the computers in Veraha, or
mark them out of scope.