r/SCCM • u/_UserAgreement_ • 5h ago
OSD Task Sequence breaks when "Install Software Updates" step is added
I'm deploying only Windows Server 2022 and 2025 via OSD task sequences.
I have a task sequence that works perfectly. To automate patching during deployment, I adjusted a few steps to get the "Install Software Updates" step working. Everything runs as expected, the updates install, but then the server gets restarted by the updates themselves, which breaks the task sequence. The sequence never resumes: the remaining steps (unrelated to updates) never run, and I'm left with the C:_SMSTaskSequence folder.
If I remove the "Install Software Updates" step, the task sequence completes normally and the folder is cleaned up properly.
So it seems the updates trigger a reboot outside of the task sequence engine's control, and the TS can't resume afterward.
My questions:
Has anyone successfully automated software updates during OSD in a different way, for example with a PowerShell script (invoking WUA or UsScanForUpdates-style logic) that installs updates and handles the reboot inside the task sequence?
Am I missing a supported way to make the built-in "Install Software Updates" step survive update-initiated reboots? I'm aware of the usual recommendations (proper boundary groups, MP/SUP availability in the deployed OS, no GPO or deployment enforcement forcing a restart during the TS), but so far the step still breaks the sequence.
As an alternative, I know I can keep my WIM images patched via "Operating System Images" → Schedule Updates. Is that the generally recommended approach for staying current, rather than patching during the TS?
Thanks,

