Blog/Intune

From hardware hash to managed device: the Autopilot onboarding pipeline

The three ways a device gets into Windows Autopilot, the five stages every device passes through, how group tags and dynamic groups decide the profile, and a secured design for bare-metal devices.

Intune
Applies toWindows 10 and 11, Microsoft Intune
Role neededIntune Administrator
Graph permissionDeviceManagementServiceConfig.ReadWrite.All
Golden ruleReset only when Profile status is Assigned
Good to know. The story in this guide is a composite of real migration projects. Company names, people and numbers are illustrative.
Windows Autopilot devices with profile status
Windows Autopilot devices: Assigned devices are safe to reset, Not assigned devices are not.

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.

RegistrationTargetingDevice1Hash registeredOEM, convert or upload2Group tag setOrderID3Dynamic grouprule on tag4Profile assignedstatus Assigned5Setup (OOBE)downloads profile6ESP, then enrolledapps and policies
Registration and targeting happen before the reset. The reset is when the device picks up the profile.

Three routes in

Where the device isRouteTouch the device?
New, bought through a partnerThe OEM or reseller registers it for youNo
Already enrolled in IntuneDeployment profile with "Convert all targeted devices to Autopilot"No
Bare metal or old imageA technician runs Get-WindowsAutopilotInfo -Online, or a script uploads to a secured endpointOnce
  1. 1

    Partner registration

    Procurement

    Ask 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. 2

    Convert devices you already manage

    Intune

    Create 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. 3

    Bare-metal devices

    Technician

    At 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

StageMeaningStuck here usually means
1 RegisteredHash importedImport error, or still registered in another tenant (808)
2 Profile assignedTag matched, profile assignedWrong group tag or dynamic group rule
3 Awaiting enrolmentNot reset or powered on yetDevice in a box or on a shelf
4 EnrollingIn setup and the Enrollment Status PageA blocking app failing or timing out
5 EnrolledManaged by Intune—
Good to know. Tracking every device through these five stages turns "Autopilot is broken" into a precise answer: for example, 40 devices registered but not assigned because their tag says SALE instead of SALES.

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.

Dynamic membership rule
(device.devicePhysicalIds -any (_ -eq "[OrderID]:SALES"))
Microsoft Graph PowerShell: set tags from a CSV
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.

ControlWhy
Only the endpoint holds Graph rights, through a managed identity and Key VaultNo admin credentials on USB sticks
API key checked in constant timeStops timing attacks on the key
Serial number and hash validatedRejects junk and injection
Rate limited, key rotated per projectA leaked key does limited damage
Every import logged with the callerTraceability
Watch out. Never reset a device until its Profile status shows Assigned. A device reset too early sets up like a home PC and must be reset again.

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

GuideIntune

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.

2 Dec 202619 min read
GuideIntune

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.

1 Dec 202616 min read
GuideIntuneAutomation

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.

29 Nov 202617 min read