I use Get-AutopilotDiagnosticsCommunity.ps1 for troubleshoot Autpilot ESP failures. You can also execute it after the ESP installation is done, if continue is pressed. It will retain the data.
Win32 () : 1 (Not Installed)
Boopathi S
3,821
Reputation points
Hello, I executed the below command Get-AutopilotESPStatus.ps1 -CABFile C:\Autopilot.cab -online Found that one of the Win 32 is not installed. Please let me know how to find which app is failed and fix the issue
DEVICE ESP:
Sidecar apps:
LastLoggedState
Exception calling "Substring" with "1" argument(s): "startIndex cannot be larger than length of string.
Parameter name: startIndex"
At C:\Program Files\WindowsPowerShell\Scripts\Get-AutopilotESPStatus.ps1:308 char:13
+ $appGuid = $win32Key.Substring(9)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
Win32 () : 1 (Not Installed)
Exception calling "Substring" with "1" argument(s): "startIndex cannot be larger than length of string.
Parameter name: startIndex"
At C:\Program Files\WindowsPowerShell\Scripts\Get-AutopilotESPStatus.ps1:308 char:13
+ $appGuid = $win32Key.Substring(9)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
Win32 () : 1 (Not Installed)
Microsoft Security | Windows Autopilot
1 answer
Sort by: Most helpful
-
Pavel yannara Mirochnitchenko 13,391 Reputation points MVP
2025-07-05T13:53:00.3633333+00:00