After you enable the "Computer Configuration\Administrative Templates\Windows Components\App runtime\Block launching Windows Store apps with Windows Runtime API access from hosted content" Group Policy Object (GPO) in Windows 10, version 1703 or a later version, the CloudExperienceHost app does not start.
As a result, Windows fails during an out-of-box experience (OOBE) deployment. When the failure occurs, you receive a "Just a moment" message, the computer restarts, and then you receive a "Why did my PC restart" message.
Additionally, the following Event 5963 entry is logged in the event log:
Log Name: Microsoft-Windows-TWinUI/Operational
Source: Microsoft-Windows-Immersive-Shell
Date: <time>
Event ID: 5963
Task Category: (5963)
Level: Error
Keywords:
User: <sid>
Computer: machine.contoso.com
Description:
Activation of the app Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy!App for the Windows.Launch contract was blocked by policy. Contact your administrator for more information.