Manually register devices with Autopilot in Windows 11 or 10

To manually register a device with Windows Autopilot, run Get-WindowsAutopilotInfo on the PC to capture its hardware hash in a CSV file, then import that file under Windows Autopilot > Devices in the Microsoft Intune admin center.

This guide covers every way to collect the hash on Windows 11 and Windows 10, the CSV format Intune accepts, profile assignment, resetting the PC so it enrolls, and the import errors you are likely to hit.

How to manually register devices with Autopilot in Windows 11 or 10?

Manual registration needs the device booted into Windows, so Microsoft positions it mainly for testing, evaluation and small batches. One CSV file can hold up to 500 devices.

  1. On the device, open Windows PowerShell as administrator so the prompt is elevated.
  2. Install the Windows Autopilot script by running Install-Script -Name Get-WindowsAutopilotInfo and accept the NuGet prompt if it appears.
  3. Generate the device hardware hash CSV file by running Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csv from a folder such as C:\HWID.
  4. Sign in to the Microsoft Intune admin center with an account that holds the Intune Administrator or Policy and Profile Manager role.
  5. Go to Devices > Windows > Enrollment, then under Windows Autopilot select Devices.
  6. Select Import, browse to the CSV file and select Import again. The upload can take several minutes.
  7. Select Sync in the toolbar, then Refresh until the serial number appears in the Windows Autopilot devices list.
  8. Create or assign an Autopilot deployment profile to a group that contains the device, and wait for Profile Status to read Assigned.

The device is ready for deployment once it is listed and a profile is assigned. A PC that already finished setup still needs a reset before Autopilot runs on it.

Manually register Autopilot devices: IT admin harvests device IDs from existing PCs
For PCs already in use, the IT admin collects the hardware IDs; a hardware vendor uploads them for new devices it ships. (Image: Microsoft)

What you need before starting?

Windows Autopilot depends on licensing, an MDM service like Intune and admin permissions as much as on the PC itself. Check each row before you collect a single hash.

Requirement What Microsoft lists
Windows 11 edition Pro, Pro Education, Pro for Workstations, Enterprise, Education or Enterprise LTSC on a supported version
Windows 10 edition Pro, Pro Education, Pro for Workstations, Enterprise, Education or Enterprise LTSC on a supported version
MDM service Microsoft Intune subscription, or another MDM service
Identity licensing Microsoft Entra ID P1 or P2, or a bundle that includes it, such as Microsoft 365 Business Premium, E3/E5 or EMS E3/E5
Tenant configuration Windows automatic enrollment enabled in Intune
Admin role Intune Administrator, Policy and Profile Manager, or a custom role with all Enrollment programs permissions except the four token management options
App consent Consent for the Microsoft Intune PowerShell and Microsoft Graph PowerShell enterprise apps
Network Internet DNS resolution plus ports 80, 443 and UDP 123 open to Microsoft's services

Windows 11 Home and Windows 10 Home are not on Microsoft's supported edition list. There is no extra hardware requirement beyond what Windows itself needs.

Manually register devices with Autopilot in Windows 11 or 10
Windows automatic enrollment must be on in the tenant first; set MDM user scope to Some or All for Microsoft Intune. (Image: Microsoft)

Why organizations use Autopilot?

Autopilot turns the Windows installation that ships on a PC into a business-ready one, so IT does not have to build and maintain custom images for every model.

What Autopilot does Effect for IT
Joins the device to Microsoft Entra ID, or Active Directory through hybrid join No manual domain join on each PC
Enrolls the device into Intune or another MDM service automatically Policies and apps arrive during setup
Assigns devices to configuration groups based on their profile Each device gets the right settings without hand sorting
Customizes the out-of-box experience (OOBE) Users skip screens such as EULA and privacy settings
Can upgrade Windows Pro to Enterprise through Subscription Activation Advanced features without reinstalling
Resets, repurposes and recovers devices A PC can return to a business-ready state for the next user

From the user's side, the only interaction is connecting to a network and signing in with work credentials.

Windows Autopilot device lifecycle from OEM delivery to ready for business
Autopilot turns the Windows that ships on a PC into a managed, business-ready setup without custom images, then handles reset and break-fix. (Image: Microsoft)

How to get the Autopilot hardware hash with PowerShell

Use this route on a device that already went through Windows Setup and OOBE. The commands save the hash locally, so you can collect several files and import them later.

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

Run it in an elevated Windows PowerShell window. The first line forces TLS 1.2 for the PowerShell Gallery download, the execution policy change lasts only for this session, and the last line writes the serial number, product ID and hardware hash to a CSV file.

You should see: C:\HWID\AutopilotHWID.csv exists and contains a header row plus one row for the device.

On the first run, the script asks you to approve the app registration permissions it needs. Microsoft updated the script in July 2023 to use Microsoft Graph PowerShell modules, so install the latest version rather than an old saved copy.

You can also run the commands against a remote PC, as long as WMI permissions are in place and Windows Firewall allows WMI on that device.

Upload the Autopilot hardware hash to Intune from OOBE

This route skips the CSV file entirely. It suits a new PC sitting at the first setup screen, though it also works on a device that is already set up.

  1. At the first sign-in prompt in OOBE, press Shift + F10 to open Command Prompt.
  2. Type powershell.exe and press Enter. On a device that is already set up, open an elevated PowerShell window instead.
  3. Run [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12.
  4. Run Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned.
  5. Run Install-Script -Name Get-WindowsAutopilotInfo -Force and agree to install NuGet if asked.
  6. Run Get-WindowsAutopilotInfo -Online.
  7. Sign in at the Microsoft Entra prompt with an account that is at least an Intune Administrator. The hash uploads automatically after sign-in.
  8. Restart the device once the hash shows in Intune, so OOBE picks up the Autopilot profile.

If the device still runs standard OOBE after the restart, reset it so it contacts the Autopilot service again.

How to export the Autopilot hardware hash without PowerShell

Two built-in routes export management logs that include a CSV file with the hardware hash. Neither needs the PowerShell Gallery.

  1. On a signed-in device, press Windows + R, type ms-settings:workplace and select OK to open Accounts > Access work or school.
  2. On Windows 11, select Export in the Export your management log files section. On Windows 10, select the Export your management log files link.
  3. Open C:\Users\Public\Documents\MDMDiagnostics and copy the CSV file that holds the hardware hash.
  4. On a Windows 11 device that is still in OOBE, press Ctrl + Shift + D to open the Windows Autopilot Diagnostics Page instead.
  5. Export the logs to an external drive from the Diagnostics Page, then take the CSV file from the exported logs.

The Diagnostics Page export is Windows 11 only. Configuration Manager can also collect hashes from existing devices and export them to a CSV file.

Export Autopilot hardware hash logs from the Windows Autopilot diagnostics page
Press Ctrl + Shift + D during Windows 11 OOBE to open this page, then select Export logs to an external drive. (Image: Microsoft)

Autopilot CSV file format for Intune import

Intune rejects files that stray from this layout. Combine single-device files into one file of up to 500 rows when you register a batch.

Column Required when an admin uploads to Intune Notes
Device Serial Number Yes Identifies which PC the hash belongs to
Windows Product ID Optional Required only for partners uploading into Intune
Hardware Hash Yes The 4K hash, Base64 encoded
Group Tag Optional Maps to the OrderID attribute, useful for dynamic groups
Assigned User Optional Must be a valid UPN; Intune only checks the domain

The header line is Device Serial Number,Windows Product ID,Hardware Hash,Group Tag,Assigned User. Headers are case-sensitive, extra columns and quotation marks are not allowed, and the file must be ANSI text, not Unicode.

Edit the file in Notepad. Saving it from Microsoft Excel produces a file Intune cannot import.

How to create an Autopilot device group in Intune

A dynamic device group picks up registered Autopilot devices automatically, so the profile follows every device you import.

  1. In the Microsoft Intune admin center, select Groups > New group.
  2. Set Group type to Security and enter a name and description.
  3. Set Microsoft Entra roles can be assigned to the group to No.
  4. Set Membership type to Dynamic Device.
  5. Select Add dynamic query > Add expression.
  6. Enter (device.devicePhysicalIDs -any (_ -startsWith "[ZTDid]")) to include every Autopilot device, or use [OrderID]: with your group tag to target a subset.
  7. Save the expression and select Create.

Build rules only from Autopilot device attributes. Other attributes do not guarantee group membership before provisioning starts.

Create an Autopilot device group with Membership type set to Dynamic Device
Pick Security as the group type, name the group, then choose Dynamic Device so imported Autopilot PCs join automatically. (Image: Microsoft)

Assign an Autopilot deployment profile to manually registered devices

The deployment profile decides the deployment mode and which OOBE screens users see. A tenant can hold up to 350 profiles.

  1. Go to Devices > Windows > Enrollment, then under Windows Autopilot select Deployment profiles.
  2. Select Create profile > Windows PC, then enter a Name on the Basics page and select Next.
  3. On the Out-of-box experience (OOBE) page, choose User-driven or Self-deploying under Deployment mode.
  4. Set Join to Microsoft Entra ID as to Microsoft Entra joined.
  5. Choose whether to show the license terms and privacy settings, set User account type, and add a device name template if you want one.
  6. On the Assignments page, select Selected groups and add the Autopilot device group.
  7. Select Next, then Create on the Review + Create page.

Device names from a template must be 15 characters or fewer, can use letters, numbers and hyphens, and cannot be all numbers. The %SERIAL% macro adds the serial number and %RAND:x% adds x random digits.

Assign Autopilot deployment profile to a device group on the Assignments page
Under Assign to, choose Selected groups and add the Autopilot device group before moving on to Review + create. (Image: Microsoft)

Autopilot profile status unassigned vs assigned in Intune

A device listed in Intune is registered, but it only gets the Autopilot experience once a profile is fully assigned.

  1. Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
  2. Select Sync, wait a few minutes, then search the list for the device's serial number.
  3. Watch the Profile Status column move from Unassigned to Assigning and then Assigned.
  4. Select the device and confirm the Date assigned field is filled in before you deploy it.

Assignment time varies with group membership rules, the Intune and Autopilot services and the device's connection, so there is no fixed wait.

Reset the device for Autopilot enrollment

Autopilot runs only during OOBE. A PC you registered after it was set up has to go back through OOBE before the profile applies.

If the PC uses device encryption, have the BitLocker recovery key ready before you reset it from Windows RE.

  1. Back up any files on the device that you need to keep.
  2. Open Settings > System > Recovery.
  3. Under Recovery options, select Reset PC.
  4. Choose Remove everything, then pick Cloud download or Local reinstall.
  5. Follow the prompts and do not restart the PC yourself, even if the screen stays black for 15 minutes or more.
  6. Connect the PC to the internet when OOBE starts, preferably over Ethernet, so it downloads the Autopilot profile.
  7. Sign in with the work account when the organization's sign-in page appears.

For a device already managed by Intune, select Devices > All devices, pick the device and choose Remove data > Wipe to factory reset it remotely.

Windows Autopilot Reset is a different tool: it keeps the Microsoft Entra join and Intune enrollment for the next user, and it does not support Microsoft Entra hybrid joined devices.

How to edit Autopilot device name and group tag in Intune

  1. Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
  2. Select the device you want to change.
  3. In the right-hand pane, edit Device name, Group tag or the assigned user's name.
  4. Select Save.

Microsoft Entra hybrid deployments ignore the device name set here; the name comes from the domain join profile instead.

How to delete a device from Windows Autopilot

You can delete Autopilot devices that are not enrolled in Intune. A device that is enrolled has to be removed in order: Intune, then Microsoft Entra ID, then Windows Autopilot.

  1. Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
  2. Tick the devices you want to remove.
  3. Select Delete in the toolbar and confirm.
  4. Wait a few minutes, then select Refresh to check the device is gone.

Do not delete the Microsoft Entra device object Intune creates at import while the device stays registered. It anchors group membership and profile targeting.

Autopilot CSV import failed in Intune

Import shows ZtdDeviceAlreadyAssigned

The hash matches a device already registered in your tenant.

  1. Find the serial number of the failed row in the CSV file.
  2. Search for that serial number in Windows Autopilot devices.
  3. If the device is listed, skip it; if it is not listed, import it again.

Import shows ZtdDeviceAssignedToAnotherTenant

The hash matches a device registered to a different tenant.

  1. Note the serial number from the CSV file.
  2. Ask the previous owner, reseller or OEM to deregister the device from their tenant.
  3. Import the CSV again once the device is released.

Import shows ZtdDeviceDuplicated

The same hash appears more than once in the CSV file, and only one copy is processed.

  1. Check the result of the other row for the same device.
  2. If one row succeeded, delete the duplicate row from the file.

Import shows InvalidZtdHardwareHash

A field in the hash is invalid or empty, usually the manufacturer or serial number.

  1. Run Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer, SerialNumber in PowerShell on the device.
  2. If either value is blank, contact the hardware manufacturer; Autopilot cannot register a device without both.
  3. Collect a new hash and import it again.

Nothing happens when you select Import

The hash in the file is badly formatted, often Base64 that is missing its padding.

  1. Test the hash with [System.Text.Encoding]::ascii.getstring([System.Convert]::FromBase64String("DEVICE HASH")) in PowerShell.
  2. If it reports an invalid length, add one or two = characters at the end of the hash until it decodes.
  3. Save the corrected file in Notepad as ANSI and import it again.

Autopilot import stuck on pending or Fix pending

Imports and syncs take minutes, and Fix pending or Attention required means Intune detected a hardware change.

  1. Select Sync, then Refresh after a few minutes rather than importing again.
  2. For Fix pending after a part was replaced, deregister the device, collect a new hash and register it again.
  3. Treat a replaced motherboard or TPM as a new device that needs a new hash.

Device shows standard OOBE instead of the Autopilot sign-in

The device was not registered, or no profile was assigned, when it reached OOBE.

  1. Check that the serial number is listed and Profile Status reads Assigned.
  2. Restart the device at OOBE so it requests the profile again.
  3. Reset the PC if it already finished setup without the profile.

Autopilot tips & cautions

Caution Why it matters
Treat 4K hashes as sensitive Microsoft recommends hash uploads through Intune only for testing or limited scenarios and points bulk registration to the Microsoft Partner Center
Confirm each 500-row batch before the next Microsoft asks that the previous CSV batch registers successfully before you add more devices
Avoid restarting OOBE repeatedly Too many restarts can push OOBE into a recovery mode that skips Autopilot; it then shows language, region and keyboard on one page
Use Ethernet when the profile sets language Language and keyboard settings in a profile require a wired connection
Enter a real UPN for Assigned User An invalid user can leave the device inaccessible until you remove the assignment
Do not use the All Devices assignment with exclusions Excluding groups while targeting all devices can break assignment and force new hash uploads
Collect a new hash after hardware repairs A replaced TPM or motherboard makes the device a new device to Autopilot

Windows Autopilot manual registration FAQ

Is Windows Autopilot available in Windows 11 and Windows 10?

Yes. Autopilot supports Pro, Pro Education, Pro for Workstations, Enterprise, Education and Enterprise LTSC editions of supported Windows 11 and Windows 10 versions. Home editions are not on the supported list.

Do I need Microsoft Intune for Autopilot?

You need an MDM service, and Microsoft Intune is the usual choice. Microsoft also lists Microsoft Entra ID P1 or P2, or a bundle such as Microsoft 365 Business Premium or E3, to provide automatic enrollment and company branding.

What is a hardware hash in Autopilot?

A hardware hash is a 4K identifier built from details such as the SMBIOS UUID, network MAC address and disk serial number. Autopilot uses it to recognize the device when it reaches the out-of-box experience.

Can I manually register existing PCs with Autopilot?

Yes. Run Get-WindowsAutopilotInfo or export management logs on the existing PC, import the CSV in Intune, then reset the PC. The device must boot into Windows to capture the hash, so Microsoft frames this route mainly for testing and small batches.

Why is my Autopilot import stuck on pending?

An import and the follow-up sync can take several minutes, so select Sync and Refresh before importing again. A Fix pending status means Intune detected a hardware change; deregister the device, collect a new hash and register it again.

Is the internet required during Autopilot setup?

Yes. The device contacts the Windows Autopilot Deployment Service, Microsoft Entra ID and Intune during OOBE. It needs internet DNS resolution and ports 80, 443 and UDP 123, and profile language settings require Ethernet.

Can I register multiple devices at once?

Yes. Combine the device rows into one CSV file of up to 500 devices and import it in Intune. For more than 500, upload several files and check each batch registers before adding the next.

Does resetting the PC remove Autopilot registration?

No. Registration lives in the Autopilot service, not on the device, so a wiped or reset PC still gets the Autopilot experience. To remove it, delete the device from Windows Autopilot devices in Intune.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *