Windows Autopilot, Step by Step — Part 3: Registering Devices — Hardware Hash, Group Tags, Dynamic Groups

Windows Autopilot, Step by Step — Part 3: Registering Devices — Hardware Hash, Group Tags, Dynamic Groups

Windows Autopilot, Step by Step — Part 3 of 9

Registering Devices: Hardware Hash, Group Tags, Dynamic Groups

This is post 3 of a nine-part series that configures and deploys Windows Autopilot end to end. Each post is one step, in deployment order. Track your progress with the Windows Autopilot Deployment Checklist — the companion checklist for the whole series, one section per part.

Part 2 configured the tenant — join settings, MDM scope, company branding — and proved it with a test join. This part puts devices into the Autopilot service itself. Until a device is registered, Autopilot does not know it exists, and no profile will reach it. If you came here from the career-level view in Desktop Engineer Part 7, this is the portal-level deep dive it pointed at.

The registration map: three routes in

Signal-flow diagram: three registration routes — OEM, partner (CSP), and manual hash import — feed one decision, whether the device is known to Autopilot; registered devices are ready for a deployment profile, a hash upload is sync pending, and an unknown device gets a generic OOBE.

A device reaches the Autopilot service by one of three routes. New devices from an OEM or reseller arrive already registered — the vendor sends the hardware identity to Microsoft when the order ships, and the devices appear in Intune before the boxes do. A Cloud Solution Provider partner registers devices the same way, through Partner Center. Everything else — lab machines, one-offs, devices already in use — goes in by hand, with the hardware hash. The route differs; the result is the same: a device record waiting for a profile.

The hardware hash — the device’s fingerprint

The hardware hash is the device’s identity as the Autopilot service sees it: a 4K hash derived from the machine’s hardware, paired with its serial number and Windows product ID. It is unique to that physical device — reimaging does not change it, so Autopilot recognises a device it has seen before.

One honest warning, straight from Learn: Microsoft recommends the 4K hash only for testing or other limited scenarios — use Partner Center registration in most cases instead. The hash contains sensitive information that only the device owner should hold. In practice, hash import is the lab route and the one-off route, not the fleet route. If you are buying fifty laptops, make the vendor register them.

Collecting the hash in the lab

For a device already through Windows Setup, the PowerShell script Get-WindowsAutopilotInfo — from the PowerShell Gallery, updated in July 2023 for the Microsoft Graph PowerShell modules — saves the hash to a CSV file:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
New-Item -Type Directory -Path "C:\HWID"
Set-Location -Path "C:\HWID"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo
Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csv

On first run the script prompts to approve the required app registration permissions. The same script can upload the hash directly — Get-WindowsAutopilotInfo -Online — the route for a device still in OOBE: press Shift+F10 at the sign-in prompt, start PowerShell, run the script, and sign in with an Intune Administrator account. Restart afterwards and it should pick up its profile.

Configuration Manager collects hashes automatically for existing devices and exports them to CSV. On Windows 11, the OOBE Diagnostics Page (Ctrl+Shift+D during OOBE) exports logs to an external drive, including a CSV with the hash; on a signed-in device, Settings > Accounts > Access work or school > Export your management log files does the same.

The CSV: five columns, strict rules

Whatever collected the hash, the import file has exactly five columns:

Column Required? Notes
Device Serial Number Yes —
Windows Product ID Partners only Required for partner uploads; optional for admins.
Hardware Hash Yes The 4K hash.
Group Tag No The label the next section is about.
Assigned User No A licensed Intune user’s UPN; prepopulates the sign-in name. Only the domain is validated — a mistyped UPN can leave the device inaccessible until the assignment is removed.

The file rules are unforgiving: up to 500 devices per CSV, and wait for one batch to register before uploading the next; no extra columns; no quotation marks; ANSI text only, never Unicode; headers are case-sensitive; edit in Notepad, never Excel.

Import — and prove it landed

In the Intune admin center: Devices > Windows > Device onboarding > Enrollment > Windows Autopilot > Devices, then Import, pick the CSV, and Import again. It takes several minutes; then Sync in the toolbar, wait, and Refresh until the new devices appear. A registered device shows in the list with its serial number — until it does, nothing downstream exists: no group, no profile, no ESP. The record stays editable after import: select a device and you can change its device name, group tag, and assigned user. One caveat: the device name is ignored for hybrid Entra joined devices, which take their name from the domain join profile instead (Part 8).

Group tags — the label that steers the profile

A group tag is a short text label attached to a device at registration — in the CSV’s Group Tag column, or edited later on the device record. Its job is sorting: it says which fleet this device belongs to, so the right profile lands on it. Set it at registration whenever you can.

The important mental model: the tag itself assigns nothing. Intune writes the group tag to the Entra device object as the OrderID attribute, inside the devicePhysicalIds collection — a dynamic group rule matches on that attribute, and the deployment profile is assigned to the group. Three separate systems, in sequence. Change a tag and the profile changes only after Entra re-evaluates the group and Intune recalculates the assignment, both on their own schedules.

Keep the discipline simple: one tag per profile, one naming standard the whole team uses — AP-Pilot, AP-Finance, AP-Lab. A tag that means two things is a profile that lands on the wrong laptops.

Dynamic groups — the rule that does the sorting

Dynamic groups are Entra ID rules that populate themselves: whenever a device’s attributes change, Entra evaluates the rules and adds or removes members. They need Entra ID P1 or P2 — the licence Part 1 set out — and at least a Groups Administrator to create them. In the Intune admin center: Groups > New group, Group type Security, Microsoft Entra roles can be assigned to the group No, Membership type Dynamic Device, then Add dynamic query.

The rules use the Autopilot device attributes — Learn is explicit that only those should be used, because a rule on any other attribute does not guarantee the device is a member before provisioning. The three rules this series needs:

Rule Matches
(device.devicePhysicalIDs -any (_ -startsWith "[ZTDid]")) Every registered Autopilot device in the tenant
(device.devicePhysicalIds -any (_ -eq "[OrderID]:AP-Pilot")) Only Autopilot devices with the group tag AP-Pilot
(device.devicePhysicalIds -any (_ -eq "[PurchaseOrderId]:76222342342")) Only Autopilot devices from one purchase order

The casing is Learn’s, exactly as printed — [ZTDid], [OrderID], [PurchaseOrderId] — and the rule text is case-sensitive. The all-devices rule is the catch-all; the per-tag rule is the workhorse, one group per profile; the purchase-order rule is for the day a single order needs its own treatment.

Now the timing: dynamic group membership is a background process. After importing, open each group and confirm the members are actually there before assigning anything — and after assigning the profile in Part 4, confirm the device’s Profile status reads Assigned before it is ever switched on. A device that starts OOBE before its group and profile have caught up provisions with the old configuration, or none at all.

When registration fails

Fan-in diagram: five registration misses — hash never imported, wrong group tag, empty dynamic group, rejected CSV, profile never assigned — all converge on a generic OOBE with no profile, no ESP, and no apps.

The import reports errors per row, and Learn documents the common ones:

Error Cause Fix
ZtdDeviceAlreadyAssigned The hash is already registered to this tenant. Don’t import it again; find the existing record.
ZtdDeviceAssignedToAnotherTenant The hash is registered to a different tenant. Transfer the device; don’t re-import.
ZtdDeviceDuplicated The same hash appears twice in the CSV. Remove the duplicate row.
InvalidZtdHardwareHash A field is invalid or empty — usually manufacturer or serial. Check with Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer, SerialNumber.
StorageError Generic. Try again later; if it persists, contact support.

Prove it before Part 4

Three checks before moving on: the device appears under Windows Autopilot devices with the expected serial number; its group tag is the one you intended; and the dynamic group for that tag shows the device as a member. All three green, and the device is ready for its profile — which is Part 4.

Next up: Deployment Profiles

Part 4, Deployment Profiles: User-Driven, Entra Joined, builds the classic user-driven profile setting by setting — the profile most organizations ship first. Do the Part 3 checklist items first, then track your progress with the Windows Autopilot Deployment Checklist.

Sources: Microsoft Learn — Manually register devices with Windows Autopilot, Create device groups for Windows Autopilot, Add users to a dynamic group. Settings, rules and licence boundaries verified against Learn on 2026-11-29.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.