auspex Issues Troubleshooting Guide (Windows)

Last updated: November 19, 2026

This guide covers known auspex problems on Windows devices: what each one means, what causes it, and how to fix it. It is written for IT and platform admins, and each problem has its own section.

Why it matters

When auspex can't capture on a device, that engineer's agent traces are missing and their AI usage reads low in Span. Fleet diagnostics, under Settings > Traces > Fleet diagnostics in Span, shows which people and devices have a problem. This guide shows how to fix each problem on the device. For how Fleet diagnostics decides a status, see the article Fleet diagnostics: check auspex health across your organization.

  • For IT and platform admins: each fix can run from your MDM in the system context or from an elevated PowerShell on the device.

  • For engineering leaders: fixing these problems restores trace coverage before you rely on trace-based metrics for a team.

Hooks not wired

What it is. auspex captures AI coding activity through hooks registered in each supported tool's configuration: Claude Code, Codex, GitHub Copilot, Cursor and VS Code. On every heartbeat, auspex checks that its hook is present and turned on in each of those configurations. When one or more are missing, the device reports its capture wiring check as failed. Once the failure persists, Fleet diagnostics shows the person as Issues with the reason Hooks are not wired.

The check covers every supported tool, whether or not the person has it installed. auspex wires them all at install time, so a missing hook means something removed it, never placed it, or turned it off in the tool.

Impact.

  • Activity from the unwired tools is not captured on that device, so its AI usage is under-reported in Span.

  • Tools that are still wired keep capturing normally.

  • The heartbeat reports only that the check failed, not which tools are affected. Run the script below on the device to name them.

Common causes.

  • The installer's setup step failed. The .msi wires the machine-wide hooks during install, but a failure there doesn't fail the install. auspex records the result of each managed install step, including errors, in C:\ProgramData\auspex\logs\install.log. To also capture the installer's own log, install with msiexec /i <package>.msi /l*v install.log.

  • A tool's configuration was overwritten. An app update, a user edit, or another configuration tool replaced the file that holds auspex's hook.

  • A tool turned hooks off. For example, Codex hooks were turned off in the user's Codex config.toml, or VS Code's chat.useHooks setting was set to false.

  • The auspex agent hasn't restarted since setup. The agent wires VS Code for its user while it runs, starting when it launches at sign-in. If it started before the hooks were placed, it also keeps reporting them as missing until it restarts.

If the device passes this check but Claude Code activity is still missing, see auspex: Claude Code Remote Settings and Managed Hooks (Windows).

Fix it on an MDM-managed device. The script below re-places the hooks, restarts the agent, re-checks, and ends with a single verdict line. It must run elevated.

  • From your MDM: run it as a PowerShell script in the system context. In Intune, use Devices → Scripts and remediations → Platform scripts, with "Run script in 64 bit PowerShell Host" set to Yes.

  • On the device: open PowerShell with Run as administrator while signed in as the affected engineer, and paste the whole block.

The agent's own capture wiring check, which also covers VS Code, can only be read from the engineer's session. A local run as that engineer checks it. An MDM run checks the machine-wide hooks only, and the device's next heartbeat confirms the rest.

& {
[Console]::OutputEncoding = [Text.Encoding]::UTF8
$Bin = 'C:\Program Files\auspex\bin\auspex.exe'
$Me = [Security.Principal.WindowsIdentity]::GetCurrent()
if (-not ([Security.Principal.WindowsPrincipal]$Me).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Output 'Not elevated: re-run from PowerShell opened with Run as administrator.'; Write-Output 'RESULT: NOT VERIFIED - not elevated'; return }
$Console = (Get-CimInstance Win32_ComputerSystem).UserName
$InSession = [bool]$Console -and ($Console -eq $Me.Name)
function Get-Wiring { $raw = (& $Bin status --json 2>$null | Out-String); if (-not $raw.Trim()) { return 'status: unreachable - the auspex agent did not answer; run auspex status in this window to see why' }; try { $c = ($raw | ConvertFrom-Json).checks | Where-Object { $_.name -eq 'capture_wiring' }; "status: $($c.status), detail: $($c.detail)" } catch { "status: unreachable - $(($raw -split "`n" | Where-Object { $_.Trim() } | Select-Object -First 1))" } }
if ($InSession) { Write-Output "== capture_wiring BEFORE ($Console)"; Get-Wiring } else { Write-Output "== capture_wiring: not checked (running as $($Me.Name); signed-in user: '$Console')" }
Write-Output '== re-placing managed hooks'; & $Bin install --system; $RC = $LASTEXITCODE; Write-Output "install exit: $RC"
Write-Output '== restarting auspex agent'; schtasks /End /TN 'app.span.auspex' | Out-Null; schtasks /Run /TN 'app.span.auspex' | Out-Null; Start-Sleep -Seconds 10
if ($InSession) { Write-Output '== capture_wiring AFTER'; $After = Get-Wiring; Write-Output $After }
Write-Output '== per-tool wiring'; $HS = (& $Bin hooks status 2>&1 | Out-String); Write-Output $HS
$Why = @()
if ($RC -ne 0) { $Why += "install failed (exit $RC)" }
if ($InSession -and $After -notmatch '^status: pass') { $Why += "capture_wiring not passing ($After)" }
if ($HS -notmatch 'placed at the system tier') { $Why += 'machine-wide hooks are not placed' }
if ($HS -match 'not wired|unknown:') { $Why += 'hooks status shows unwired/unknown tools' }
Write-Output '=================================================='
if ($Why.Count -gt 0) { Write-Output "RESULT: NOT WORKING - $($Why -join '; ')" }
elseif ($InSession) { Write-Output 'RESULT: OK - auspex capture hooks are wired and the agent reports healthy' }
else { Write-Output 'RESULT: OK - machine-wide hooks are wired; the next heartbeat confirms VS Code and the agent check' }
}

Reading the result.

  • RESULT: OK means the hooks are wired. The device's next heartbeat reports the check as passing, and Fleet diagnostics drops the reason at its next data refresh. After an MDM run, the verdict covers the machine-wide hooks only, so watch that heartbeat to confirm the rest.

  • RESULT: NOT WORKING lists the reasons. The capture_wiring AFTER line names the tools that are still unwired (for example 2 of 5 tools unwired: codex, vscode). A ✗ <tool> failed: … line in the re-placing step gives the error for that tool.

  • RESULT: NOT VERIFIED means the PowerShell window wasn't elevated. Re-run it with Run as administrator.

The per-tool list shows the machine-wide tools. The agent wires VS Code per user rather than machine-wide, so the list shows VS Code only when it is wired for the account running the script, and an MDM run in the system context never shows it. The capture_wiring lines always include it.

Fix it on a self-installed device. The script above is for MDM-managed devices: auspex install --system stops with "no managed configuration present" on a device without the MDM's managed configuration. On a self-installed device, the engineer runs auspex hooks install in their own PowerShell session, without Run as administrator. It wires every supported tool and reports any tool it couldn't wire.

If it persists. Send the full script output to the Span team, together with a support bundle collected in the engineer's own (non-elevated) PowerShell session. It writes auspex-support-<timestamp>.zip to the current folder, with auspex's logs, the install log, a redacted copy of its configuration and its health report:

& 'C:\Program Files\auspex\bin\auspex.exe' support        # redacted support bundle

Things to know

  • Fleet diagnostics doesn't name the tool. The heartbeat carries only whether each check passed, so the tool names appear only on the device, in auspex status and auspex hooks status.

  • A configuration auspex can't read counts as wired. If auspex can't read a tool's configuration, the capture wiring check doesn't fail for that tool. auspex hooks status shows that tool as ⚠ … unknown with the error.

  • Don't use auspex hooks install on a managed device. auspex refuses it there, because per-user hooks on top of the machine-wide ones would capture every event twice. Re-place hooks by reinstalling the .msi from your MDM, running auspex install --system from an elevated prompt, or running the script above.

  • auspex repairs VS Code on its own. On a managed device, the running agent re-wires VS Code for its user. Missing machine-wide hooks stay missing until the managed install step runs again, which every .msi install or upgrade does.

  • Wired doesn't always mean firing. The check confirms auspex's hook is in place in each configuration. A tool setting that tells the tool to ignore it, such as Claude Code remote settings, shows up as missing traces instead.

Worked example. On a managed device, auspex status in the engineer's session shows [FAIL] capture_wiring: 2 of 5 tools unwired: codex, vscode, followed by a note that the machine-wide hooks are re-placed by auspex install --system and that auspex re-wires VS Code on its next start. Run locally as that engineer, the script re-places the Codex hook, and the agent restart lets auspex re-wire VS Code. The capture_wiring AFTER line then reads status: pass, detail: all 5 tools wired and the result is RESULT: OK. If Codex is still listed, check the user's Codex config.toml for hooks turned off.

Related articles

Fleet diagnostics: check auspex health across your organization

auspex Issues Troubleshooting Guide (macOS)

auspex: Claude Code Remote Settings and Managed Hooks (Windows)

Verify that auspex is sending traces

Self-Install auspex on Windows

auspex: IT Admin User Guide for Microsoft Intune (Windows)

Need help?

Contact your Span account team or reach out to support@span.app.