(61) Windows Autopilot Diagnostics
- Mr B SOE way
- May 9, 2023
- 1 min read
Probably something I have used heavily over the past 3 years now is troubleshooting what happens with Windows Autopilot, this is can be from a HAADJ (Hybrid Azure AD Joined) or AADJ (Azure AD Joined). More of this info can be found here. This can run during the ESP screen or after the device has been enrolled.
Instructions during ESP:
1. Press Shift + F10 to load to Command Prompt.
2. Type in PowerShell then press Enter.
3. Type in Set-Executionpolicy Bypass press Y when prompted
4. Type in install-script get-autopilotdiagnostics -force
5. Type in get-autopilotdiagnostics.ps1 -online
6. You will be prompted to login with your UPN and approve MFA
7. It will run the required like so.

Instructions after user profile has been created.
1. Search for PowerShell, run as administrator
2. Type in Set-Executionpolicy Bypass press Y when prompted
3. Type in install-script get-autopilotdiagnostics -force
4. Type in get-autopilotdiagnostics.ps1 -online

5. You will be prompted to login with your UPN and approve MFA
6. It will run the required like so.


Comments