ConfigureIntermediateTutorials

How to Set Up Windows Autopilot in Microsoft Intune from Scratch

Set up Windows Autopilot in Microsoft Intune from scratch. Covers Entra ID enrollment config, device registration (OEM and PowerShell), deployment profiles, ESP, and end-to-end testing.

Emanuel De Almeida July 19, 2026 9 min read
Difficulty
Intermediate
Time
30-60 minutes
Steps
3
Last tested
July 19, 2026

Windows Autopilot automates device provisioning so users receive a fully configured Windows device by simply connecting to the internet and signing in with their corporate credentials. No imaging, no manual setup, no shipping to IT first. This tutorial covers the complete setup: configuring Entra ID automatic enrollment, registering device hardware hashes (OEM or PowerShell), creating deployment profiles that control the OOBE experience, configuring the Enrollment Status Page, and testing the end-to-end flow.

Before you start

What you will learn

  • How to set up Windows Autopilot in Intune from scratch, from Entra ID prerequisites to deployment profiles, ESP configuration, and pilot device testing.
  • Autopilot eliminates manual imaging and hands-on device setup. Devices ship directly to users and configure themselves via the cloud, reducing IT overhead and enabling remote/hybrid workforce deployment.

Requirements

  • Microsoft Intune admin center (endpoint.microsoft.com), Microsoft Entra admin center
  • Microsoft 365 tenant with Intune and Entra ID, Windows 10/11 devices with internet access
  • Intune Administrator
  • Global Administrator or Cloud Device Administrator (for Entra ID config)

Good to know

  • 30-60 minutes (setup), 15-45 minutes (per device deployment)

Quick answer

Enable automatic MDM enrollment, register device hardware hashes, create a deployment profile and ESP, assign both to a dynamic device group, then test with a pilot device.

Intune > Devices > Enrollment > Windows > Automatic Enrollment + Deployment Profiles + ESP

Step-by-step tutorial

3 steps
1

Configure enrollment, create device group, and register devices

Configure Entra ID automatic enrollment, create a dynamic device group, and register device hardware hashes.

Intune > Devices > Enrollment > Windows > Automatic Enrollment

Enable automatic MDM enrollment: In Intune, go to Devices > Enrollment > Windows > Automatic Enrollment. Set MDM user scope to Some (for pilot) or All. If Some, select your pilot user group.

Create a dynamic device group: Go to Groups > New group. Type: Security, name: "Autopilot Devices", membership: Dynamic Device. Add this rule:

log
(device.devicePhysicalIDs -any (_ -contains "[ZTDId]"))

This auto-includes any device registered with Autopilot.

Register devices: Option A (recommended): request OEM registration from Dell, HP, Lenovo, or Microsoft during purchase. Provide your Entra tenant ID.

Option B: manual registration via PowerShell on each device:

ps
Install-Script -Name Get-WindowsAutoPilotInfo -Force
Get-WindowsAutoPilotInfo -Online

Sign in with Intune admin credentials when prompted. For bulk: export to CSV with -OutputFile C:\Hashes.csv then import in Intune > Devices > Windows enrollment > Devices > Import.

Expected resultMDM user scope shows Configured. Dynamic group populates with Autopilot-registered devices.

Devices registered via OEM appear within 24-48 hours. PowerShell-registered devices appear within 15 minutes. Windows 11 SE devices can only be registered through OEM partners.

2

Create deployment profile and Enrollment Status Page

Create and assign the Autopilot deployment profile and Enrollment Status Page.

Intune > Devices > Windows > Windows enrollment > Deployment Profiles + Enrollment Status Page

Create deployment profile: Go to Devices > Windows > Windows enrollment > Deployment Profiles > Create profile > Windows PC.

Configure OOBE settings:

  • Deployment mode: User-driven
  • Join to Entra ID as: Microsoft Entra ID joined
  • Hide: License terms, privacy settings, change account options
  • User account type: Standard
  • Device name template: CORP-%SERIAL%

Assign to your "Autopilot Devices" dynamic group.

Create Enrollment Status Page: Go to Devices > Windows > Windows enrollment > Enrollment Status Page > Create.

Configure:

  • Show app and profile installation progress: Yes
  • Timeout: 60 minutes
  • Block device use until all apps and profiles installed: Yes
  • Allow users to reset device on error: Yes
  • Only show for OOBE: Yes

Select critical required apps to block on (e.g. Microsoft 365 Apps, Company Portal).

Assign to the same "Autopilot Devices" group.

Expected resultBoth profiles show Assigned status with your Autopilot device group listed.

Profile changes only apply to devices going through OOBE (new or reset). Existing enrolled devices need a factory reset. Set ESP timeout high enough for your app installations (30-60 minutes is typical).

3

Test with a pilot device and configure monitoring

Test the full Autopilot flow on a pilot device and set up deployment monitoring.

Reset a registered device: Settings > System > Recovery > Reset this PC > Remove everything > Clean the drive.

Boot the device and connect to the internet. The Autopilot flow should proceed automatically:

  1. Device detects the Autopilot profile ("Setting up for work or school")
  2. Device renames per your template and reboots
  3. User signs in with Entra ID credentials
  4. ESP shows installation progress
  5. Desktop appears with all apps and policies applied

Verify on the device:

ps
dsregcmd /status # AzureAdJoined: YES
manage-bde -status # BitLocker active if configured
Get-AppxPackage | Where-Object {$_.Name -like '*Office*'}

Verify in Intune: Devices > All devices > find the device > check Compliance, Installed apps, and Configuration profiles.

Monitor ongoing deployments: Use Devices > Monitor > Enrollment failures for issues. For diagnostics on a failed device:

ps
mdmdiagnosticstool.exe -area Autopilot -cab C:\AutopilotDiag.cab

Target: 95% success rate, deployment time under 30 minutes.

PowerShell
dsregcmd /status
manage-bde -status
Expected resultDevice completes OOBE, joins Entra ID, enrolls in Intune, installs all required apps, and lands on the desktop. dsregcmd shows AzureAdJoined: YES.

Document the timing of each phase during pilot testing. Typical breakdown: profile detection 5 min, rename+reboot 3 min, user sign-in 2 min, ESP app install 10-30 min. If ESP times out, remove non-critical apps from the required list or increase the timeout.

Confirm the result

Troubleshooting

Device doesn't detect the Autopilot profile during OOBE

Cause: The device's hardware hash isn't registered in Intune, or the deployment profile isn't assigned to the device's group, or there's no internet during OOBE.

Verify the device is registered: Intune > Devices > Windows enrollment > Devices. Check that the device's group membership includes it in the dynamic Autopilot group (may take up to 30 min for dynamic group evaluation). Confirm internet connectivity during OOBE. If using Wi-Fi, the device needs to connect before Autopilot detection.

Enrollment Status Page times out before completing

Cause: Too many required apps, slow internet, large app packages, or the timeout value is too low for the workload.

Increase the ESP timeout (try 90 minutes for complex app sets). Remove non-critical apps from the required installation list and make them available instead. Check individual app deployment times in Intune > Apps > Monitor > App install status. Split large app suites into smaller packages that install faster.

Device fails to rename and gets stuck in a reboot loop

Cause: The device naming template produced a duplicate or invalid name, or there's a DNS conflict with the generated name.

Check the naming template in the deployment profile. Use %SERIAL% (unique per device) rather than %RAND:x% to avoid duplicates. If stuck, reset the device and remove the naming template temporarily. Verify the generated name doesn't conflict with existing AD or DNS records. Names must be 15 characters or fewer.

Frequently asked questions

What's the difference between user-driven and self-deploying mode?

User-driven requires the user to sign in during OOBE, ideal for personal work devices. Self-deploying configures automatically without user interaction, suited for shared devices, kiosks, or staging scenarios. User-driven is more common and provides user-level authentication.

Can I use Autopilot with existing devices?

Yes, but existing enrolled devices must be factory-reset first. Capture the hardware hash via Get-WindowsAutoPilotInfo before resetting, register it in Intune, then reset the device. Autopilot only applies during OOBE.

How long does an Autopilot deployment take?

Typically 15-45 minutes: 5-10 minutes for profile detection and updates, 2-3 minutes for sign-in and Entra join, 10-30 minutes for app installation during ESP. Depends on internet speed, number of apps, and device hardware.

What happens if the device loses internet during deployment?

The device pauses and shows a network troubleshooting page. Once reconnected, deployment resumes from where it left off. If connectivity is lost during Entra join or initial policy download, a full reset may be needed.

Do I need different profiles for different device types?

While one profile works, multiple profiles give better control: different OOBE settings per department, admin rights for IT staff, self-deploying mode for kiosks. Assign via separate dynamic groups based on device model, serial prefix, or group tag.

Reader reviews

Rate this articleBe the first to rate
No written reviews yetRate the article above, or be the first to share your experience.

Related articles