Quick answer: prefer OEM or partner registration for production scale. Use manual collection mainly for testing, evaluation, repair, or controlled exceptions. Record the serial number and collection context beside the hash, validate the output as plain text, and never assume that a successful upload proves the correct tenant or deployment profile.

Start with the registration path

Windows Autopilot registration associates a device identity with an organization. Microsoft describes the hardware hash as part of that registration identity, but the best collection path depends on who has physical custody of the device and when the record is created.

SituationPreferred approachOperational reason
New devices purchased through an eligible OEM or resellerPartner or OEM registrationAvoids opening and manually processing every device before deployment.
Small evaluation or lab batchManual script-based collectionUseful for controlled testing where each device and output can be inspected.
Existing device being repurposedManual collection with ownership reviewThe device may already have Entra, Intune, or Autopilot history that must be understood.
Repair or motherboard replacementFollow Microsoft and OEM replacement guidanceA major hardware change can alter the identity represented by the record.

Manual collection is not a substitute for a scalable supply-chain process. Microsoft’s guidance positions it primarily for testing and evaluation. If technicians routinely unbox hundreds of new devices to run a script, the process should be reviewed with the supplier before more automation is layered on top.

Preserve the chain from device to record

The most expensive collection errors are often not malformed hashes. They are valid records associated with the wrong physical device, customer, batch, or tenant. At collection time, retain enough non-secret context to answer these questions later:

Do not place passwords, access tokens, recovery keys, or other secrets in this tracking record. The goal is provenance: enough evidence to reconnect a CSV row to its source without expanding the security impact of the file.

Choose online or offline collection deliberately

Microsoft provides supported PowerShell-based ways to gather the Autopilot device information, and Windows setup can also produce diagnostics in controlled scenarios. An online workflow can reduce handoffs by sending the information directly to the intended service, but it requires deliberate authentication and tenant verification. An offline workflow produces a file that can be reviewed before upload, but every copy, rename, spreadsheet edit, and merge becomes a new opportunity to damage or misroute the record.

For a shared technician process, decide the path before the device reaches the bench. Document the required privilege, whether internet access is allowed, where output is stored, how the target tenant is confirmed, and when local copies are removed under your retention policy.

Validate the output before it joins a batch

  1. Confirm the output contains a nonblank serial number and hardware hash.
  2. Compare the serial number with a second source on the device.
  3. Open the file as plain text and make sure the hardware hash has not been truncated or split by a real newline.
  4. Record the intended tenant and batch outside the CSV when those values are not part of the supported schema.
  5. Check whether the serial number or hash already appears in the working batch.
  6. Keep the original collection output until the normalized result is reviewed; do not overwrite the only source copy.
  7. After registration, confirm the resulting Autopilot record and intended profile state.

Microsoft supports up to 500 devices in a CSV import batch. That is a limit, not a target. Smaller batches are easier to reconcile when a record is rejected, already registered, or associated with another administrative context.

Do not confuse adjacent device objects

An Autopilot registration, a Microsoft Entra device identity, and an Intune managed-device record describe related but different parts of the lifecycle. Seeing one does not prove that the other two exist or are healthy. Record the identifier and portal context for the object you inspected instead of writing “device exists” in a ticket.

If collection succeeds but registration reports that the device is already assigned, stop before deleting anything. Determine whether the conflict is a duplicate row, a stale record in the same tenant, or an ownership issue involving another tenant. A technically valid hash does not establish that your tenant is entitled to claim the device.

Authoritative sources