auspex: IT Admin User Guide for Rippling (Windows)

Last updated: November 19, 2026

This guide covers deploying the Span agent (auspex) to Windows devices with Rippling device management. For Macs, see the macOS guide.

What This Package Does

auspex captures AI coding activity (prompts, file edits, tool use) from supported IDEs — Claude Code, Cursor, Codex CLI, GitHub Copilot, and VS Code chat — and sends telemetry to Span's analytics backend. This data appears in your Span dashboard under AI Effectiveness.

On Windows the .msi installs machine-wide to C:\Program Files\auspex, registers a logon task so each engineer's agent starts when they sign in, and converges the device to the managed tier — capture is centrally governed and a user cannot install a competing copy over it.

It installs two programs in C:\Program Files\auspex\bin: auspex.exe, the agent and the auspex command, and auspexw.exe, the small program that the coding tools run on every event. It opens no console window and, from v0.13.0, contains only the capture code, which keeps each hook fast. Its name, path and signature stay the same across that change, so existing path and publisher rules keep working. Both are code-signed, like the .msi. If your fleet allowlists software by path, hash or publisher — AppLocker, WDAC, or your EDR or antivirus — allow both: a blocked auspexw.exe stops capture from every coding tool (Claude Code, Cursor, Codex, Copilot and VS Code). A hash rule needs updating for every release.

Prerequisites

  • A Span account with access to integration settings.

  • Rippling device management enabled, with target Windows devices enrolled and assigned to a group.

  • Windows 10 (build 1809+) or Windows 11 with the Rippling agent installed.

  • A way to resolve each engineer's work email on the device. Rippling cannot supply it (see Step 2).

  • The Windows packages (download the build matching your devices' architecture, then upload it):

    • amd64 — Intel/AMD, almost every PC: https://auspex.span.app/releases/latest/windows/auspex_windows_amd64.msi — click here to download

    • arm64 — Windows on Arm devices only: https://auspex.span.app/releases/latest/windows/auspex_windows_arm64.msi — click here to download

Which architecture — amd64 or arm64?

Almost certainly amd64. Every Intel and AMD PC uses it, which is the overwhelming majority of corporate fleets. arm64 is needed only for Windows on Arm devices: Snapdragon-based Copilot+ PCs (Surface Pro 11, Surface Laptop 7, Dell XPS 13 9345, Lenovo ThinkPad T14s Gen 6 and similar), or Windows VMs on Apple Silicon Macs.

An amd64 .msi will not install on an Arm device, so don't assume a single build covers the fleet.

Checking architecture across a fleet

Rippling's device inventory reports processor details per device (Devices → All devices, then add the processor/architecture column and export). If your inventory doesn't distinguish clearly, push this one-liner as a script and collect the output:

"$env:COMPUTERNAME,$env:PROCESSOR_ARCHITECTURE"

AMD64 → the amd64 build. ARM64 → the arm64 build. If any Arm devices appear, create a second deployment with the arm64 .msi scoped to just those devices.

Deployment order (important)

  1. Identity script that writes identity.json — before or with the package.

  2. The package (line-of-business app, Required).

The package converges the device on install; if identity is already present, the agent starts reporting immediately rather than waiting for the next script cycle.


Step 1: Enable the Integration and Get Your Token (one-time)

This step is the same regardless of your MDM.

Head to the AI tool settings dashboard (https://span.app/_/settings/integrations) and under IDE & CLI AI Tool Integrations, enable the tools your engineers use. The token is shared org-wide and is required regardless of which IDEs you deploy for.

The token itself is on the Traces settings page: open the Trace collection card and click View token. It's shown there regardless of which tools are toggled on above, and it's the same span_… org-wide value every device uses. That page is limited to Span admins and users whose permission group can manage integrations — if it doesn't load for you, ask one of them to fetch the token.

Step 2: Deliver the Identity File

The token is org-wide; the work email is per-device. Deliver both with a script that runs as System, so identity.json exists before (or with) the package.

Rippling cannot supply the work email. As per Rippling support on July 30th, 2026, Rippling does not support injecting dynamic user-specific variables, such as the assigned employee's work email address, into deployment scripts at runtime or within software deployment. Resolving the engineer's work email on the device is therefore the customer's responsibility, and how you do it depends on how your org provisions devices. The script below marks that step with a TODO.

In Rippling: Devices → Scripts → New script, target Windows, run as System. Attach it as a pre-install script on the software entry in Step 3 if Rippling offers that on your plan, so identity lands immediately before the package converges; otherwise schedule it recurring (daily is ample) so a device that enrols later still receives it.

$ErrorActionPreference = 'Stop'

# REQUIRED: paste your org token from Step 1
$Token = '<YOUR_TOKEN>'

# TODO: resolve the work email of the engineer this PC belongs to and assign it
# to $Email. Rippling cannot supply it, so derive it from something your own
# provisioning guarantees is present on the device. Leave the check below in place.
$Email = ''

if ([string]::IsNullOrWhiteSpace($Email) -or $Email -notmatch '^[^@\s]+@[^@\s]+\.[^@\s]+$') {
  Write-Error "Could not resolve a valid work email (got '$Email')."
  exit 1
}

$Dir = 'C:\ProgramData\auspex'
New-Item -ItemType Directory -Force $Dir | Out-Null

# UTF-8 WITHOUT a BOM. PowerShell's default encodings (UTF-16 from Out-File, or a BOM from
# Set-Content) would put stray bytes in the token, which auspex rejects as a malformed credential.
$json = '{{"token":"{0}","work_email":"{1}"}}' -f $Token, $Email
[IO.File]::WriteAllText((Join-Path $Dir 'identity.json'), $json, (New-Object System.Text.UTF8Encoding $false))
Write-Output "Success: identity.json written for $Email"

C:\ProgramData\auspex is the managed configuration tree. The .msi applies a restrictive ACL to it (SYSTEM and Administrators full control, Users read-only), so the token is not writable by the signed-in engineer.

Fail loud, not quiet. The email check is deliberate. auspex treats a malformed address as absent, so a device with a bad substitution would install, capture, and upload attributed to nobody — with nothing in status to say why. Failing the script surfaces it in the Rippling console instead. Confirm the resolved value on a pilot device before assigning to the fleet.

Step 3: Deploy the Package

In Rippling: Devices → Software → Add software, upload the .msi, and assign it to the same group as Step 2 as a required install.

Download the installer — pick the build matching the target devices' architecture (see Which architecture above):

  • amd64 — Intel/AMD, almost every PC: https://auspex.span.app/releases/latest/windows/auspex_windows_amd64.msi — click here to download

  • arm64 — Windows on Arm devices only: https://auspex.span.app/releases/latest/windows/auspex_windows_arm64.msi — click here to download

The .msi is signed with a Windows code-signing certificate (Azure Trusted Signing), so policies requiring signed installers accept it.

On install it places the binary, writes the managed configuration marker, registers the machine-wide logon task, and converges the device to the managed tier.

Step 4: Smoke Test (before fleet rollout)

Assign Steps 2–3 to one or two pilot devices first. Confirm both report success in Rippling, then verify on-device from an elevated PowerShell:

& 'C:\Program Files\auspex\bin\auspex.exe' status
& 'C:\Program Files\auspex\bin\auspex.exe' auth show
schtasks /Query /TN "app.span.auspex"

Expect install mode: managed, daemon: ok, a token and work email both sourced from managed, and a registered logon task. Then have the pilot user sign in, use Claude Code or Cursor briefly, and confirm their traces reach the Span dashboard.

The engineer's own agent starts at sign-in. On a device where nobody has signed in since the install, status run as an admin will show the managed tier in place but no per-user daemon yet — that is expected.

Optional: Replace legacy Span coding-hooks in the same rollout

If your fleet still runs Span's earlier coding-hooks agent, retire it once auspex is confirmed healthy on each device — running both captures every event twice. See Retiring coding-hooks for a check-then-uninstall script that only acts on devices where auspex has genuinely taken over. Schedule it as a recurring Rippling script so it re-evaluates as the rollout lands.

Optional: Choose which coding tools auspex captures

auspex captures every coding tool it supports by default. To capture only some on a new deployment, deliver a managed.yaml with your tool list before the package: deploy it the same way as the identity script in Step 2. To add or remove one tool on some devices later, run & 'C:\Program Files\auspex\bin\auspex.exe' hooks install --system --tool <tool>, or hooks uninstall, on them as a script, run as System. auspex managed settings has the script and how to lock the list, and auspex settings has the tool names (auspex v0.14.0 and later).

Optional: Change the managed policy on an existing fleet

To change managed.yaml on devices that already run auspex, deploy a script that passes your whole policy to auspex managed apply, as a script, run as System. Push the same script again whenever you change the policy; running it again with no change does nothing. Check a device with & 'C:\Program Files\auspex\bin\auspex.exe' managed show. auspex managed settings has the script (auspex v0.14.0 and later).


Upgrading

Upload the new .msi to the existing software entry in Rippling. Assigned devices reinstall on their next check-in. The managed configuration and identity.json are preserved across the upgrade, and each engineer's captured data and hook wiring are left intact.

Uninstalling

Remove the software assignment in Rippling, or push msiexec /x with the auspex ProductCode as a script. The .msi deliberately leaves C:\ProgramData\auspex behind — the managed configuration and organization identity belong to you, not the installer, so a reinstall or version change never loses your fleet policy. Remove it explicitly when decommissioning, together with each user's auspex data: undelivered events, the local copy, logs and the device id. Run this script elevated, as Administrator or as SYSTEM from your MDM, after the uninstall finishes. It refuses to run while auspex is still installed. The uninstall stops each signed-in user's daemon and waits for it to exit, so the folders aren't in use:

# Removes what the auspex .msi leaves behind, and every user's auspex data; run elevated after msiexec /x.
# The MDM guides copy this file verbatim and Release E2E runs it, so keep it Windows PowerShell 5.1-compatible.
$ErrorActionPreference = 'Stop'

$principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
    [Console]::Error.WriteLine('uninstall-managed.ps1: run elevated (as Administrator or SYSTEM)')
    exit 1
}
if (Test-Path -LiteralPath 'C:\Program Files\auspex\bin\auspex.exe') {
    [Console]::Error.WriteLine('uninstall-managed.ps1: auspex is still installed; uninstall the .msi first')
    exit 1
}

# The managed configuration and organization identity, which the .msi keeps across reinstalls and upgrades.
if (Test-Path -LiteralPath 'C:\ProgramData\auspex') {
    Remove-Item -LiteralPath 'C:\ProgramData\auspex' -Recurse -Force
}

# Each user's .auspex is owner-only, so it's deleted with backup and restore rights, through handles that never follow
# a link and hold each folder until it's empty: the user can still change it while this runs.
Add-Type -TypeDefinition @'
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;

public static class AuspexUserData {
    const uint Delete = 0x10000, Synchronize = 0x100000, ListDirectory = 0x1, ReadAttributes = 0x80;
    const uint ShareReadWrite = 0x3, OpenExisting = 3, BackupSemantics = 0x02000000, OpenReparsePoint = 0x00200000;
    const uint AttrDirectory = 0x10, AttrReparsePoint = 0x400;
    const int AttributeTagInfo = 9, FullDirectoryInfo = 14, FullDirectoryRestartInfo = 15, DispositionInfo = 4, DispositionInfoEx = 21;
    const int FileNotFound = 2, PathNotFound = 3, NoMoreFiles = 18, DirNotEmpty = 145, NotAllAssigned = 1300;

    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    struct TokenPrivileges { public uint Count; public long Luid; public uint Attributes; }

    [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
    static extern SafeFileHandle CreateFileW(string name, uint access, uint share, IntPtr security, uint disposition, uint flags, IntPtr template);
    [DllImport("kernel32.dll", SetLastError = true)]
    static extern bool GetFileInformationByHandleEx(SafeFileHandle file, int infoClass, IntPtr buffer, uint size);
    [DllImport("kernel32.dll", SetLastError = true)]
    static extern bool SetFileInformationByHandle(SafeFileHandle file, int infoClass, ref uint info, uint size);
    [DllImport("kernel32.dll", SetLastError = true)]
    static extern bool SetFileInformationByHandle(SafeFileHandle file, int infoClass, ref byte info, uint size);
    [DllImport("kernel32.dll")]
    static extern IntPtr GetCurrentProcess();
    [DllImport("kernel32.dll")]
    static extern bool CloseHandle(IntPtr handle);
    [DllImport("advapi32.dll", SetLastError = true)]
    static extern bool OpenProcessToken(IntPtr process, uint access, out IntPtr token);
    [DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
    static extern bool LookupPrivilegeValueW(string system, string name, out long luid);
    [DllImport("advapi32.dll", SetLastError = true)]
    static extern bool AdjustTokenPrivileges(IntPtr token, bool disableAll, ref TokenPrivileges state, uint length, IntPtr previous, IntPtr returned);

    public static void Remove(string path) {
        Enable("SeBackupPrivilege");
        Enable("SeRestorePrivilege");
        RemoveEntry(path);
    }

    static void Enable(string privilege) {
        IntPtr token;
        if (!OpenProcessToken(GetCurrentProcess(), 0x28, out token)) throw new Win32Exception(Marshal.GetLastWin32Error());
        try {
            long luid;
            if (!LookupPrivilegeValueW(null, privilege, out luid)) throw new Win32Exception(Marshal.GetLastWin32Error());
            TokenPrivileges state = new TokenPrivileges { Count = 1, Luid = luid, Attributes = 2 };
            if (!AdjustTokenPrivileges(token, false, ref state, 0, IntPtr.Zero, IntPtr.Zero) || Marshal.GetLastWin32Error() == NotAllAssigned) {
                throw new InvalidOperationException("this account doesn't hold " + privilege + "; run elevated, as Administrator or SYSTEM");
            }
        } finally {
            CloseHandle(token);
        }
    }

    // Backup semantics open a folder regardless of its permissions; OpenReparsePoint opens a link itself, not its
    // target. No FILE_SHARE_DELETE, so nothing can rename or delete the entry while the handle is open.
    static void RemoveEntry(string path) {
        SafeFileHandle handle = CreateFileW(path, Delete | ListDirectory | ReadAttributes | Synchronize, ShareReadWrite,
            IntPtr.Zero, OpenExisting, BackupSemantics | OpenReparsePoint, IntPtr.Zero);
        if (handle.IsInvalid) {
            int error = Marshal.GetLastWin32Error();
            // The user can delete an entry after it was listed; one that's already gone needs nothing more.
            if (error == FileNotFound || error == PathNotFound) return;
            throw new Win32Exception(error, "couldn't open " + path);
        }
        using (handle) {
            uint attributes = Attributes(handle, path);
            bool folder = (attributes & AttrDirectory) != 0 && (attributes & AttrReparsePoint) == 0;
            for (int attempt = 1; ; attempt++) {
                if (folder) {
                    foreach (string name in Children(handle, path)) RemoveEntry(path + "\\" + name);
                }
                int error = MarkDeleted(handle);
                if (error == 0) return;
                // The user can still add an entry to a folder before it's deleted; empty it again.
                if (!(folder && error == DirNotEmpty && attempt < 5)) throw new Win32Exception(error, "couldn't delete " + path);
            }
        }
    }

    static uint Attributes(SafeFileHandle handle, string path) {
        IntPtr buffer = Marshal.AllocHGlobal(8);
        try {
            if (!GetFileInformationByHandleEx(handle, AttributeTagInfo, buffer, 8)) throw new Win32Exception(Marshal.GetLastWin32Error(), "couldn't read " + path);
            return (uint)Marshal.ReadInt32(buffer);
        } finally {
            Marshal.FreeHGlobal(buffer);
        }
    }

    // Children lists a folder through its open handle, so the listing is of the folder that was checked.
    static List<string> Children(SafeFileHandle handle, string path) {
        List<string> names = new List<string>();
        const int size = 64 * 1024;
        IntPtr buffer = Marshal.AllocHGlobal(size);
        try {
            // Restart lists from the top, so a retry sees entries added since; the plain class would continue an
            // exhausted listing and return nothing.
            int infoClass = FullDirectoryRestartInfo;
            while (GetFileInformationByHandleEx(handle, infoClass, buffer, size)) {
                infoClass = FullDirectoryInfo;
                int offset = 0;
                while (true) {
                    IntPtr entry = IntPtr.Add(buffer, offset);
                    int next = Marshal.ReadInt32(entry, 0);
                    int length = Marshal.ReadInt32(entry, 60);
                    string name = Marshal.PtrToStringUni(IntPtr.Add(entry, 68), length / 2);
                    if (name != "." && name != "..") names.Add(name);
                    if (next == 0) break;
                    offset += next;
                }
            }
            int error = Marshal.GetLastWin32Error();
            if (error != NoMoreFiles) throw new Win32Exception(error, "couldn't list " + path);
        } finally {
            Marshal.FreeHGlobal(buffer);
        }
        return names;
    }

    // POSIX semantics unlink the name at once, even while someone holds the entry open, so it can't keep its folder
    // non-empty; the extended form also removes a read-only file. Older Windows lacks it.
    static int MarkDeleted(SafeFileHandle handle) {
        uint flags = 0x1 | 0x2 | 0x10;
        if (SetFileInformationByHandle(handle, DispositionInfoEx, ref flags, 4)) return 0;
        byte delete = 1;
        if (SetFileInformationByHandle(handle, DispositionInfo, ref delete, 1)) return 0;
        return Marshal.GetLastWin32Error();
    }
}
'@

$link = [IO.FileAttributes]::ReparsePoint
foreach ($userDir in Get-ChildItem -LiteralPath 'C:\Users' -Directory -Force | Where-Object { -not ($_.Attributes -band $link) }) {
    $data = Get-Item -LiteralPath (Join-Path $userDir.FullName '.auspex') -Force -ErrorAction SilentlyContinue
    if ($data) { [AuspexUserData]::Remove($data.FullName) }
}

Write-Output 'auspex data removed'

Troubleshooting

  • install mode: user instead of managed — the managed configuration tree is missing. Confirm C:\ProgramData\auspex\managed.yaml exists; if the .msi installed but the marker is absent, the install did not complete.

  • token: not set after the identity script ran — check the file's encoding. A UTF-16 or BOM-prefixed identity.json is rejected; use the WriteAllText form in Step 2 exactly as given. auspex auth show names the problem when the file is present but unreadable.

  • work_email: (unset) with a token present — the address failed validation (it must look like name@domain.tld). A truncated or malformed value is dropped rather than sent, so check what your script actually resolved on that device (the Step 2 script prints it on success).

  • No traces for a specific engineer — confirm they have signed in since the install (their agent starts at sign-in), then check auspex status in their session shows capture_wiring passing for all tools.

  • Traces stop from every coding tool while the device still reports in — security software is most likely blocking or has quarantined C:\Program Files\auspex\bin\auspexw.exe. Check your EDR or AppLocker logs, allow the file, and reinstall the .msi if it is missing.

  • An Arm device shows the install as failed — you assigned the amd64 .msi. See Which architecture above.