
What Autopilot needs
Autopilot does not install Windows. It personalises the Windows already on the device and hands it to Intune. For that to happen, two things must be true before the device is reset or first switched on: it is registered in your tenant by its hardware hash, and a deployment profile is assigned to it through a group.
Three routes in
| Where the device is | Route | Touch the device? |
|---|---|---|
| New, bought through a partner | The OEM or reseller registers it for you | No |
| Already enrolled in Intune | Deployment profile with "Convert all targeted devices to Autopilot" | No |
| Bare metal or old image | A technician runs Get-WindowsAutopilotInfo -Online, or a script uploads to a secured endpoint | Once |
- 1
Partner registration
ProcurementAsk your reseller to register new devices to your tenant and set the group tag at purchase. This is the only fully zero-touch route.
- 2
Convert devices you already manage
IntuneCreate or edit a deployment profile and switch on "Convert all targeted devices to Autopilot". Assign it to a group of corporate devices. Registration can take up to 48 hours. Converted devices stay registered even if you remove the profile later.
Expected result: The devices appear in Windows Autopilot devices.
- 3
Bare-metal devices
TechnicianAt the first setup screen press Shift+F10 and register the device with the online script. It asks for an admin sign-in, so use it for small numbers only.
PowerShell · Technician Install-Script -Name Get-WindowsAutopilotInfo -Force Get-WindowsAutopilotInfo -Online -GroupTag SALES
The five stages
| Stage | Meaning | Stuck here usually means |
|---|---|---|
| 1 Registered | Hash imported | Import error, or still registered in another tenant (808) |
| 2 Profile assigned | Tag matched, profile assigned | Wrong group tag or dynamic group rule |
| 3 Awaiting enrolment | Not reset or powered on yet | Device in a box or on a shelf |
| 4 Enrolling | In setup and the Enrollment Status Page | A blocking app failing or timing out |
| 5 Enrolled | Managed by Intune | — |
Group tags and dynamic groups
The group tag is stored as OrderID. A dynamic device group collects every device with a tag, and the deployment profile is assigned to that group. Profiles are never assigned to a device directly.
(device.devicePhysicalIds -any (_ -eq "[OrderID]:SALES"))Connect-MgGraph -Scopes DeviceManagementServiceConfig.ReadWrite.All
$all = Get-MgDeviceManagementWindowsAutopilotDeviceIdentity -All
Import-Csv .\tags.csv | ForEach-Object { # columns: Serial, Tag
$ap = $all | Where-Object SerialNumber -eq $_.Serial
if ($ap) { Update-MgDeviceManagementWindowsAutopilotDeviceIdentityDeviceProperty -WindowsAutopilotDeviceIdentityId $ap.Id -GroupTag $_.Tag }
}Secured upload for bare-metal devices
For a room full of new devices, some teams give technicians a small script that reads the hash during setup and sends it to a company endpoint, which imports it with Graph. The device never holds an admin credential; it only knows an upload key that can do nothing else.
| Control | Why |
|---|---|
| Only the endpoint holds Graph rights, through a managed identity and Key Vault | No admin credentials on USB sticks |
| API key checked in constant time | Stops timing attacks on the key |
| Serial number and hash validated | Rejects junk and injection |
| Rate limited, key rotated per project | A leaked key does limited damage |
| Every import logged with the caller | Traceability |
Read more on Microsoft Learn
Checklist
- Every device has a registration route
- Group tags are set and dynamic groups match them
- Profiles are assigned to groups, not devices
- Profile status is Assigned before any reset
- The Enrollment Status Page blocks only on essential apps
- Bare-metal uploads never carry admin credentials
Get the next guide by email
The Cutover is a monthly email with new guides and what we learned on recent waves.
Related
Intune in plain language: a field guide for new admins
Every Intune term you meet in the first month, explained with an everyday comparison, how it really works, where to find it, and the mistake people usually make with it.
Troubleshooting an Intune device in seven checks
A fixed order that finds the root cause of most Intune tickets in minutes: the right device, check-in, compliance, profiles, apps, groups and the device itself, with the portal path and the Graph command for each.
Safe automation for Intune: Graph, remediations, risk scores and AI guardrails
How to automate Intune without creating the next incident: least-privilege Graph permissions, polite API use, remediation scripts that cannot hurt you, a simple device risk score, vulnerability triage, and the confirmation gate every AI assistant needs.
