Boot → check kill switch → skip flagged steps → run next step → reboot if required → repeat

Windows Server 2025 via Aria Automation, part 2: a state machine that survives four reboots

One script runs at every startup until the build is done. Flag files make each step run once, a state file keeps true timings across reboots, and at the end it cleans up, reports and deletes itself.

17 September 2026 · Updated 1 October 2026 · 6 min · Adam Stretton