On occasion we get this error, this post covers off how to identify where the issue is and in this case the application installation that is causing the error.
Read more: Intune – We couldn’t complete the provisioning process in the required timeYes that luverly red screen of disappointment….

So the first thing you need to do is to grab a USB stick and plug it into the device and click on : View diagnostics
Create a folder on your USB drive and save the diagnostics to that folder
This will create a Zip file of all the goodness you need to help diagnose the issue.
Also if you have access to Microsoft Support, this ZIP file is what they will request in the first instance

Device Setup Pre-Provisioning – Quick Guide
The device setup process is divided into four main parts:
- Security Policies
- Certificates
- Network
- Apps
The Apps section is where all the required apps are installed on the device. If any app fails to install, the whole setup may stop and show a red error screen.
How to Find Out What Went Wrong
To check what failed:
- Plug in your USB drive and unzip the file you saved earlier.
You’ll see about 50 files inside. - Focus on these important files:
microsoft-windows-shell-core-operational.evtxAppWorkload*.log– {note the * as there can be more then one}
- Open the
.evtxfile using the Event Viewer.
Search through the logs to find out which of the four setup steps (Security Policies, Certificates, Network, or Apps) failed.

Get-WinEvent -Path "microsoft-windows-shell-core-operational.evtx" | Where-Object { $_.Message -match 'bootstrapstatus: subcategory id = devicesetup'}
Diagnosing Which App Failed
The AppWorkload.log file will show you which app failed during installation.
Keep in mind:
If one app fails, any apps listed after it will not be installed.
Apps are installed one after another (sequentially).
Get-Content -Path "appworkload*.log"|select-string -Pattern "Updating ESP tracked install status from InProgress to error"
In the example below , it was a PowerShell script packaged up to disable offline files

The PowerShell script was probably not returning the correct exit code.

