Win32 () : 1 (Not Installed)

Boopathi S 3,821 Reputation points
2024-01-12T18:04:03.8266667+00:00

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
{count} votes

1 answer

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 13,391 Reputation points MVP
    2025-07-05T13:53:00.3633333+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.