Obtaining Autopilot Diagnostics

In this post I’ll be detailing how to use the Get-AutopilotDiagnostics PowerShell script to obtain further information on the status of Autopilot during the provisioning process. This will help to troubleshoot failures and identify the potential source of the failure e.g. repeated failure of a particular application install.

I havent created this script, all credit goes to the creators, but it certainly is a useful script to troubleshoot Autopilot or even just to get visibility into the provisioning process. The source of the script is here –


The script itself is run on the Windows device being provisioned and most suitably, during the Autopilot provisioning process. The process is as follows –

  1. Hit Shift + F10 to launch the Command prompt (may need to use FN+SHIFT+F10 on some laptops)
  2. Change Command Prompt to PowerShell by typing PowerShell and pressing enter
  1. Type Set-ExecutionPolicy RemoteSigned and hit enter
  2. Type Install-Script Get-AutopilotDiagnostics and hit enter
  3. Press Y and enter to accept the path variable
  4. Press Y and enter to accept the NuGet Provider variable
  5. Press Y and enter to accept the repository question
  1. Type Get-AutopilotDiagnostics.ps1 -Online and hit enter
  2. Authenticate with Microsoft Graph when requested
  1. The script will load a detailed output of the status of Autopilot and information including –
    • Windows version
    • Autopilot deployment profile
    • tenant domain
    • Delivery optimisation statistics
    • Applications
  1. Rerun the script command as necessary to troubleshoot or until Autopilot completes and continues to the next stage.
  2. Without the -online variable, you won’t need to authenticate with Microsoft Graph, but the names of the applications etc. will not display as their logical names and rather Intune identifiers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: