I had an issue where the autopilot rollout took a really long time. To find the issue I used the Get-AutopilotDiagnostics. Here I found a Win32App id which took a long time to install.
Install the Get-WIndowsAutoPilotDiagnostidcs powershell script.
TIP : if you need to start PowerShell as Admin : Start-Process powershell – Verb runAs
Install-Script -Name Get-AutopilotDiagnostics
PowerShell.exe -ExecutionPolicy Bypass
Get-AutopilotDiagnostics
More information :
https://www.powershellgallery.com/packages/Get-AutopilotDiagnostics/5.6
https://learn.microsoft.com/en-us/mem/autopilot/troubleshooting
The -online switch will retrieve details about app and policy from Intune using Graph API : Get-AutopilotDiagnostics.ps1 -online
MdmDiagnosticsTool.exe -area autopilot -cab c:\temp\mdmlogs.cab
Get-AutopilotDiagnostics.ps1 -CABFile c:\temp\mdmlogs.cab
Now we found the Win32app id, go to the Microsoft Endpoint Manager admin center to lookup the ID or just paste the app id into your browser you will find the application. In my case it was Edge.
Use this url : https:///endpoint.microsoft.com/#view/Microsoft_Intune_Apps/SettingsMenu/~/2/appId/
https:///endpoint.microsoft.com/#view/Microsoft_Intune_Apps/SettingsMenu/~/2/appId/2014b4bd-a319-4775-b03f-b8cb97476c62
To check the Office application ID, I used this url :
https://endpoint.microsoft.com/#view/Microsoft_Intune_Apps/SettingsMenu/~/0/appId/ ……
Log directory : c:\programdata\Microsoft IntuneManagementExtension\Logs\intuneManagementExtension.log
More information :
https://learn.microsoft.com/en-us/answers/questions/131102/find-app-name-using-app-id-intune.html
https://learn.microsoft.com/en-us/answers/questions/131102/find-app-name-using-app-id-intune.html
https://learn.microsoft.com/en-us/mem/intune/remote-actions/collect-diagnostics
https://docs.microsoft.com/en-us/mem/intune/apps/troubleshoot-app-install
command : systemreset
ms-settings:
commands