mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-25 05:00:07 +00:00
6d7548d49fcc43d908a9b0ed5796bbb39fae7e40
Root cause found via WhiteGlove session log (session-46ec9146): On the user's second boot the esp_exiting event triggered the 30s Hello-Wait timer. The Hello wizard had not yet appeared within those 30s, so OnHelloWaitTimeout() emitted hello_wait_timeout and immediately fired HelloCompleted → enrollment_complete. This was wrong: Hello policy was explicitly detected as enabled (hello_policy_detected: helloEnabled=true). The Hello wizard launched shortly after (hello_provisioning_willlaunch at seq 27), but the agent had already sent enrollment_complete. Fix: track _isHelloPolicyEnabled in CheckHelloPolicy(). In OnHelloWaitTimeout, if Hello policy is known to be enabled, do not fire HelloCompleted — instead emit the hello_wait_timeout event with action=extended_wait and start the long HelloCompletion timer (1500s). This gives the wizard up to 25 minutes to appear. The enrollment_complete path via timeout is now only taken when Hello policy is disabled or not yet detected. The original session (46ec9146) was also affected by the spool-drain bug (whiteglove_complete was seq 126+, never uploaded before exit), so the session never reached Pending. Both bugs contributed to the incorrect Succeeded result. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Autopilot Monitor
Advanced monitoring and troubleshooting solution for Windows Autopilot deployments.
Overview
Autopilot Monitor provides real-time tracking, intelligent diagnostics, and automated troubleshooting for Windows Autopilot enrollment processes. It consists of:
- Bootstrap Script — PowerShell script deployed via Intune that starts monitoring early in the enrollment process
- Monitoring Agent — Lightweight .NET application that collects telemetry and evidence during enrollment
- Backend API — Azure Functions-based ingestion and processing pipeline
- Web Dashboard — Next.js application for real-time monitoring and fleet analytics
Architecture
For detailed information about the system architecture, components, and data flow, see Architecture Documentation.
Documentation
Full documentation is available at autopilotmonitor.com/docs
License
MIT License — see LICENSE for details
Description
Windows Autopilot & Intune enrollment monitoring: live session timelines, fleet health, diagnostics, and an MCP server for AI-assisted troubleshooting.
autopilotdevice-managementdevice-provisioningendpoint-managementenrollmentintunemcp-servermonitoringmsintuneoobetroubleshootingwindowswindows-autopilot
Readme
AGPL-3.0
60 MiB
Languages
C#
72.7%
TypeScript
25.7%
PowerShell
1%
JavaScript
0.5%