" Why did my PC restart ? " - screen after SCCM re-image (OSD)

The Imaging Engineer 41 Reputation points
2021-07-22T04:26:00.447+00:00

We recently started seeing this on Lenovo models and Virtual machines116925-whydidmypcrestart-thumb-1394467e5cbaf463efa20ca9f1.png lately.

The task sequence completes successfully, but this appears before the login screen. We are on SCCM Version 2103.

Steps tried so far to remediate:

  1. blocked Computer Configuration\Administrative Templates\Windows Components\App runtime\Block launching Windows Store apps with Windows Runtime API access from hosted content. using registry
  2. removed the following from unattend.xml

NetworkLocation=Work
SKippMachineOOBE=True
SKipUserOOBE=True

  1. Disabled telemetry & customer improvement program

Event viewer says -

The process C:\WINDOWS\system32\taskhostw.exe (PC123) has initiated the restart of computer PC123 on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Reconfiguration (Unplanned)
Reason Code: 0x20004
Shutdown Type: restart
Comment:

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.
990 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Colin Ford 1,026 Reputation points
    2021-07-22T21:54:56.913+00:00

    Triple check you have removed these two lines in your unattend.

    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>

    I would even open a cmd prompt and inspect the unattend.xml that is layed down in WinPE before machine restarts.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. HanyunZhu-MSFT 1,846 Reputation points Microsoft Vendor
    2021-07-23T06:57:05.66+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    It seems that you have posted another post to share the log files about this issue.

    Do you think maybe we could follow up in that post later:
    https://video2.skills-academy.com/en-us/answers/questions/486284/sccm-just-a-moment-screen-after-osd.html

    Thanks for your time.


    If the response is helpful, please click "Accept Answer"and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.