r/SCCM • • 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,

5 Upvotes

7 comments sorted by

17

u/Unusual-Biscotti687 5h ago

This step has always been broken. Don't. Use an up to date base .wim and ensure your install application steps use up to date versions.

9

u/Peteostro 5h ago

Microsoft updates wth Windows iso’s every month (usually 2 weeks after patch Tuesday) with the newest patches. Just download the new iso, import it into CM, distribute it, and edit the OSD task to use the new one. Pretty simple

2

u/hurkwurk 1h ago

This... so much this. we've tried three times over 10 years to get this crap to work. even tried a recommended work around of setting up a completely separate WSUS server for bench machines to get updates from, which did work since it basically avoided the entire MECM method, but ultimately abandoned it as a waste of management time. As Peteostro said already, update your ISOs every month or 3 and then just make sure your monthly patching will catch up your imaged systems within a day or two. if you are really concerned, there are ways to setup your bench's IP range to have a full time maintenance window and have your techs manually trigger updates after imaging so the machine is fully up to date before delivery.

9

u/The-Snarky-One 5h ago

That step has been wonky from the get-go and we decided to remove it years ago.

4

u/Unusual-Biscotti687 3h ago

And I should add - offline image servicing doesn't work any more and hasn't for some time because it depends on full update .cab files quite different from the modern update files WSUS and SCCM software updates now use.

1

u/nodiaque 2h ago

Last time I had that problem, it was because of the "setup configmgr step". In the parameters, I had to put the full management point address with https

1

u/CmdrDTauro 42m ago

Don’t