Invoke-AutopilotFailedAppRetry

1.0.4

Invoke-AutopilotFailedAppRetry reports the latest installation outcome for each Win32 app found in the Intune Management Extension (IME) logs, oldest result first. Installed apps are shown in green, failed apps in red, and required apps that are assigned but not yet installed in gray with their assignment time. It also reports downloads and installs that are still in
Invoke-AutopilotFailedAppRetry reports the latest installation outcome for each Win32 app found in the Intune Management Extension (IME) logs, oldest result first. Installed apps are shown in green, failed apps in red, and required apps that are assigned but not yet installed in gray with their assignment time. It also reports downloads and installs that are still in progress, and a detailed IME state per app (enforcement and compliance state, exit code and meaning, error code, retry attempt, detection and applicability) from the IME registry or the last IME report in the logs. Apps in the IME Retry state (for example exit code 1618, another installation in progress) are shown in magenta and left to IME's own retries. By default, only failed apps are selected for retry; -AppIds explicitly selects the apps. The script asks for confirmation unless -Force or -WhatIf is specified.
 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.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Invoke-AutopilotFailedAppRetry

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

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