Deploy the Dex Device Agent on Windows
- Local Administrator rights on targets (or a management platform that runs as SYSTEM).
- Windows 10 21H2 / Windows Server 2019 or later, x64.
- Outbound HTTPS (TCP 443) from endpoints to https://dex365.ai and download.dex365.ai.
- The tenant's enrollment token from the Dex admin portal.
Enable the Windows Device app
1 minDex only manages Windows endpoints when the Windows Device app is enabled in the App Store. Turn it on before enrolling devices — otherwise the agent connects but Dex has no tools or skills to act on it.
ScreenshotGenerate an enrollment token in Dex
2 minSign in to the Dex management console, then go to Settings → Devices. Under Enrollment tokens, generate a new token (or reveal an existing one) — this is the value you'll substitute for {{ENROLLMENT_TOKEN}} in every method below. The MSI itself is tenant-agnostic; the token is always delivered separately.
Screenshot
ScreenshotInstall and enroll the agent
~5 minInstall on one machine — interactively with the GUI configurator, or headless from an elevated PowerShell.
Reconfigure, upgrade, or uninstall
as neededReconfigure an enrolled machine from the Start menu (Configure Dex Device Agent — it detects the existing enrollment and offers Reconfigure) or with an elevated --configure. To upgrade, run the new MSI the same way: it performs an in-place major upgrade that preserves enrollment and config.yaml. Uninstall via Settings → Apps → Dex Device Agent, or silently with the command below.
Verify the deployment
~2 minUse these deterministic checks after any method. The end-to-end confirmation is the device appearing in the Dex admin portal within a minute of enrollment.
Screenshot# 1. Installed: binary present
Test-Path 'C:\Program Files\DexDeviceAgent\DexDeviceAgent.exe' # True
# 2. Service running
(Get-Service DexDeviceAgent).Status # Running
# 3. Configured: exit code 0 iff an enrollment token or device secret exists
& 'C:\Program Files\DexDeviceAgent\DexDeviceAgent.exe' --has-config; $LASTEXITCODE # 0
# 4. Enrolled: after successful enrollment the token is exchanged for a
# device_secret in config.yaml (enrollment completes within ~30 s)
Select-String -Path 'C:\ProgramData\DexDeviceAgent\config.yaml' `
-Pattern 'device_secret:\s*"?\S' -Quiet # True
# 5. Recent logs, if anything above failed
Get-Content C:\ProgramData\DexDeviceAgent\logs\*.log -Tail 50Devices enrolled and reporting
The agent is installed and enrolled, and your Windows devices show up in the Dex admin portal — Dex can now run diagnostics and remediations on them. Roll the same method out to the rest of the fleet, or set up your Macs next.