How to retry OS update task sequence after failure due to unexpected reboot?

Mike G 81 Reputation points
2025-04-12T16:57:49.93+00:00

Hello,

I am attempting to upgrade a handful of PCs from Windows 11 22H2 Enterprise to 23H2 using a Config Manager task sequence (TS). The PCs are in workgroups and not domain joined or attached to Entra ID and I am running Config Manager 2409.

For the Upgrade Operating System step within the TS, I am using the "Windows 11, Version 23H2 x64 2025-04B" feature update package for the update. I have come across an issue where on random PCs, the TS will install the feature update package and allow the PC to reboot several times as what usually happens for updates like this. After the reboots, the task sequence stops in a failed state.

SMSTS.log reports an unexpected reboot caused the task sequence to stop

User's image

The windows system event log shows when the TS rebooted the system for the update

User's image

and then shows trustedinstaller rebooted it a few minutes later for the update.

User's image

The last entry in smsts.log when the TS rebooted the PC was as 1:11:20p and the next entry was at 1:17:49p so there was no TS or Config Manager activity where a reboot would have interrupted it and I do not have any reboot steps in the TS around the time of the update. I would expect the TS to be aware of all reboots Windows is doing prior to when the TS starts running again but it apparently does not.

User's image

Does anyone have any thoughts how to prevent this from occurring? One of the messages in smsts.log at the failure says "Task Sequence action is not configured for retry on reboot." I looked into how to set it to retry and I found the SMSTSRetryRequested and SMSTSRebootRequested variables in the documentation at https://learn.microsoft.com/en-us/intune/configmgr/osd/understand/task-sequence-variables#SMSTSRebootRequested but both look like they do the same as the Restart Computer TS step and not actually retry the TS if it failed.

Thanks to everyone in advance.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
1,064 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.