Invoke-AutopilotFailedAppRetry
1.0.4
1. Exports the IME Win32Apps registry tree to a .reg backup before reporting and prompting.
2. Stops the IME service after confirmation.
3. Removes the app state and matching GRS (Global Re-evaluation Schedule) entries.
4. Starts the IME service so it re-evaluates the apps.
5. Triggers an MDM sync so the device refreshes its app list (unless -NoSync).
6. Optionally reboots the device (-Reboot).
All output files are written to %windir%\Temp:
IME-Retry-<timestamp>.log run log (more detail with -Debug)
IME-Retry-Win32Apps-backup-<timestamp>.reg registry backup, taken before any change
IME-Retry-transcript-<timestamp>.txt full console transcript (only with -Debug)
Intended for use in OOBE/ESP (Shift + F10). Registry layout, GRS hash format and log patterns are heuristics. Test on a VM first.
Installation Options
Owners
Copyright
(c) 2026 Wolfgang Bäck. All rights reserved.
Package Details
Author(s)
- Wolfgang Bäck
Tags
Intune Autopilot ESP OOBE Win32 IME Retry GRS Apps Failed
Functions
Write-Log Write-EnvironmentInfo Get-ImeLogLines Get-ImeAppStatuses Get-RegistryAppNames Write-ImeAppStatuses Get-ImeAppActivities Write-ImeAppActivities ConvertFrom-ImeLogTime ConvertTo-ImeUtcTime Format-DisplayTime Get-ImeLogAppStates Get-State Get-ImeRegistryAppStates Get-ImeCodeText Get-ImeAppStateDetails Write-ImeAppStateDetails Get-GrsHashesForApp Remove-AppState Invoke-MdmSync
Dependencies
This script has no dependencies.
Release Notes
1.0.4 (2026-12-04) Wolfgang Bäck: Reports the detailed IME state of each app from the IME registry or the last IME report in the logs: enforcement and compliance state, exit code and its meaning, return code mapping, error code, retry attempt, detection, applicability and install context. Shows apps in the IME Retry state (e.g. exit code 1618) in magenta and does not select them for reset. Also selects apps that only the IME state reports as failed. Fixes empty retry selection with -WhatIf.
1.0.3 (2026-12-04) Wolfgang Bäck: Reports current IME app downloads and installs with app names and start times.
1.0.2 (2026-12-04) Wolfgang Bäck: Lists required apps that are assigned but not yet installed in gray with their assignment time. Saves the script as UTF-8 with BOM so Windows PowerShell 5.1 in OOBE shows non-ASCII characters correctly.
1.0.1 (2026-12-04) Wolfgang Bäck: Logs the real install time from IME GRS values, sorted by install time. Adds -TimeZone for displayed times. Shows app names in the retry selection. Logs the version only at startup. No WhatIf output for log writes.
1.0.0 (2026-12-04) Wolfgang Bäck: Initial release. Lists failed Win32 apps with names, clears IME state and GRS entries, restarts IME, triggers MDM sync, optional reboot. Supports -Verbose, -Debug, -WhatIf, -Force.
FileList
- Invoke-AutopilotFailedAppRetry.nuspec
- Invoke-AutopilotFailedAppRetry.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.4 (current version) | 10 | 12/4/2026 |
| 1.0.2 | 11 | 12/4/2026 |
| 1.0.1 | 9 | 12/4/2026 |