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.
- On the device, open Windows PowerShell as administrator so the prompt is elevated.
- Install the Windows Autopilot script by running
Install-Script -Name Get-WindowsAutopilotInfoand accept the NuGet prompt if it appears. - Generate the device hardware hash CSV file by running
Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csvfrom a folder such asC:\HWID. - Sign in to the Microsoft Intune admin center with an account that holds the Intune Administrator or Policy and Profile Manager role.
- Go to Devices > Windows > Enrollment, then under Windows Autopilot select Devices.
- Select Import, browse to the CSV file and select Import again. The upload can take several minutes.
- Select Sync in the toolbar, then Refresh until the serial number appears in the Windows Autopilot devices list.
- 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.

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.

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.

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.
- At the first sign-in prompt in OOBE, press Shift + F10 to open Command Prompt.
- Type
powershell.exeand press Enter. On a device that is already set up, open an elevated PowerShell window instead. - Run
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12. - Run
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned. - Run
Install-Script -Name Get-WindowsAutopilotInfo -Forceand agree to install NuGet if asked. - Run
Get-WindowsAutopilotInfo -Online. - Sign in at the Microsoft Entra prompt with an account that is at least an Intune Administrator. The hash uploads automatically after sign-in.
- 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.
- On a signed-in device, press Windows + R, type
ms-settings:workplaceand select OK to open Accounts > Access work or school. - On Windows 11, select Export in the Export your management log files section. On Windows 10, select the Export your management log files link.
- Open
C:\Users\Public\Documents\MDMDiagnosticsand copy the CSV file that holds the hardware hash. - On a Windows 11 device that is still in OOBE, press Ctrl + Shift + D to open the Windows Autopilot Diagnostics Page instead.
- 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.

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.
- In the Microsoft Intune admin center, select Groups > New group.
- Set Group type to Security and enter a name and description.
- Set Microsoft Entra roles can be assigned to the group to No.
- Set Membership type to Dynamic Device.
- Select Add dynamic query > Add expression.
- Enter
(device.devicePhysicalIDs -any (_ -startsWith "[ZTDid]"))to include every Autopilot device, or use[OrderID]:with your group tag to target a subset. - Save the expression and select Create.
Build rules only from Autopilot device attributes. Other attributes do not guarantee group membership before provisioning starts.

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

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.
- Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
- Select Sync, wait a few minutes, then search the list for the device's serial number.
- Watch the Profile Status column move from Unassigned to Assigning and then Assigned.
- 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.
- Back up any files on the device that you need to keep.
- Open Settings > System > Recovery.
- Under Recovery options, select Reset PC.
- Choose Remove everything, then pick Cloud download or Local reinstall.
- Follow the prompts and do not restart the PC yourself, even if the screen stays black for 15 minutes or more.
- Connect the PC to the internet when OOBE starts, preferably over Ethernet, so it downloads the Autopilot profile.
- 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
- Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
- Select the device you want to change.
- In the right-hand pane, edit Device name, Group tag or the assigned user's name.
- 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.
- Go to Devices > Windows > Enrollment > Windows Autopilot > Devices.
- Tick the devices you want to remove.
- Select Delete in the toolbar and confirm.
- 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.
- Find the serial number of the failed row in the CSV file.
- Search for that serial number in Windows Autopilot devices.
- 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.
- Note the serial number from the CSV file.
- Ask the previous owner, reseller or OEM to deregister the device from their tenant.
- 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.
- Check the result of the other row for the same device.
- 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.
- Run
Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer, SerialNumberin PowerShell on the device. - If either value is blank, contact the hardware manufacturer; Autopilot cannot register a device without both.
- 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.
- Test the hash with
[System.Text.Encoding]::ascii.getstring([System.Convert]::FromBase64String("DEVICE HASH"))in PowerShell. - If it reports an invalid length, add one or two
=characters at the end of the hash until it decodes. - 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.
- Select Sync, then Refresh after a few minutes rather than importing again.
- For Fix pending after a part was replaced, deregister the device, collect a new hash and register it again.
- 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.
- Check that the serial number is listed and Profile Status reads Assigned.
- Restart the device at OOBE so it requests the profile again.
- 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.





