Manual registration for existing devices
Note
This article describes the steps for you to reuse devices you already have, and register them in Microsoft Managed Desktop. If you are working with brand-new devices, follow the steps in Register new devices in Microsoft Managed Desktop yourself instead.
The process for Partners is documented in Steps for Partners to register devices.
Microsoft Managed Desktop can work with brand-new devices, or you can reuse devices you might already have. If you reuse devices, you must reimage them. You're able to register devices with Microsoft Managed Desktop in the Microsoft Intune admin center.
Prepare to register existing devices
To register existing devices:
- Obtain the hardware hash for each device.
- Merge the hash data.
- Register the devices in Microsoft Managed Desktop.
- Double-check that the image is correct.
- Deliver the device.
Obtain the hardware hash
Microsoft Managed Desktop identifies each device uniquely by referencing its hardware hash. You have four options for getting this information from devices you're already using.
To obtain the hardware hash:
- Ask your OEM supplier for the AutoPilot registration file, which will include the hardware hashes.
- Collect information in Microsoft Endpoint Configuration Manager.
- Run a Windows PowerShell script either by using Active Directory, or manually on each device, and collect the results in a file.
- Start each device, but don't complete the Windows setup experience, and collect the hashes on a removable flash drive.
Microsoft Endpoint Configuration Manager
You can use Microsoft Endpoint Configuration Manager to collect the hardware hashes from existing devices that you want to register with Microsoft Managed Desktop. If you've met all these prerequisites, you're ready to collect the information.
Important
Any devices you want to get this information for must be running Windows 10, version 1703 or later.
To collect the hardware hash information:
- In the Configuration Manager console, select Monitoring.
- In the Monitoring workspace, expand the Reporting node, expand Reports, and select the Hardware - General node.
- Run the report, Windows Autopilot Device Information, and view the results.
- In the report viewer, select the Export icon, and select the CSV (comma-delimited) option.
- After saving the file, you'll need to filter results to just the devices you plan to register with Microsoft Managed Desktop. Then, upload the data to Microsoft Managed Desktop.
- Open the Microsoft Intune admin center and navigate to the Devices menu.
- In the Microsoft Managed Desktop section, select Devices.
- Select + Register devices, which opens a fly-in to register new devices.
For more information, see Register devices by using the Microsoft Intune admin center below.
Active Directory PowerShell script method
In an Active Directory environment, you can use the Get-WindowsAutoPilotInfo
PowerShell cmdlet to remotely collect the information from devices in Active Directory Groups by using WinRM. You can also use the Get-AD Computer
cmdlet and get filtered results for a specific hardware model name included in the catalog. Before you proceed, confirm these prerequisites, and then proceed.
To use the Active Directory PowerShell script method:
Ensure WinRM is enabled.
The devices you want to register are active on the network. That is, they aren't disconnected or turned off.
Ensure you have a domain credential parameter that has permission to execute remotely on the devices.
Ensure that Windows Firewall allows access to WMI. To do that, follow these steps:
- Open the Windows Defender Firewall control panel and select Allow an app or feature through Windows Defender Firewall.
- Find Windows Management Instrumentation (WMI) in the list, enable for both Private and Public, and then select OK.
Open a PowerShell prompt with administrative rights.
Run either one of these scripts:
Install-script -name Get-WindowsAutoPilotInfo #example one – leverage Get-ADComputer to enumerate devices Get-ADComputer -filter * | powershell -ExecutionPolicy Unrestricted Get-WindowsAutoPilotInfo.ps1 -credential Domainname\<accountname>
#example two – target specific devices: Set-ExecutionPolicy powershell -ExecutionPolicy Unrestricted Get-WindowsAutoPilotInfo.ps1 -credential Domainname\<accountname> -Name Machine1,Machine2,Machine3
Access any directories where there might be entries for the devices. Remove entries for each device from all directories, including Windows Server Active Directory Domain Services and Microsoft Entra ID. It could take a few hours to completely process.
Access management services where there might be entries for the devices. Remove entries for each device from all management services, including Microsoft Endpoint Configuration Manager, Microsoft Intune, and Windows Autopilot. It could take a few hours to completely process.
Now you can proceed to register devices.
Manual PowerShell script method
To use the manual Powershell script method:
- Open a PowerShell prompt with administrative rights.
- Run
Install-Script -Name Get-WindowsAutoPilotInfo
. - Run
powershell -ExecutionPolicy Unrestricted Get-WindowsAutoPilotInfo -OutputFile <path>\hardwarehash.csv
. - Merge the hash data.
Flash drive method
To use the flash drive method:
- On a device other than the one you're registering, insert a USB drive.
- Open a PowerShell prompt with administrative rights.
- Run
Save-Script -Name Get-WindowsAutoPilotInfo -Path <pathToUsb>
. - Turn on the device you're registering, but don't start the setup experience. If you accidentally start the setup experience, you'll have to reset or reimage the device.
- Insert the USB drive, and then press SHIFT + F10.
- Open a PowerShell prompt with administrative rights, and then run
cd <pathToUsb>
. - Run
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
. - Run
.\Get-WindowsAutoPilotInfo -OutputFile <path>\hardwarehash.csv
. - Remove the USB drive, and then shut down the device by running
shutdown -s -t 0
. - Merge the hash data.
Important
Do not power on the device you are registering again until you've completed registration for it.
Merge hash data
If you collected the hardware hash data by the manual PowerShell or flash drive methods, you must combine the data in the two CSV files into a single file to complete registration. Here's a sample PowerShell script to make it easy:
Import-CSV -Path (Get-ChildItem -Filter *.csv) | ConvertTo-Csv -NoTypeInformation | % {$_.Replace('"', '')} | Out-File .\aggregatedDevices.csv
With the hash data merged into one CSV file, you can now proceed to register the devices.
Register devices by using the Microsoft Intune admin center
To register devices using the Microsoft Intune admin center:
- In the Microsoft Intune admin center, select Devices in the left navigation pane.
- In the Microsoft Managed Desktop section, select Devices.
- In the Microsoft Managed Desktop Devices workspace, Select + Register devices, which opens a fly-in to register new devices.
- In File upload, provide a path to the CSV file you created previously.
- Select a device profile in the dropdown menu.
- Select Register devices. The system will add the devices to your list of devices on the Devices blade. The devices are marked as Registration Pending. Registration typically takes less than 10 minutes, and when successful, the device will show as Ready for user. Ready for user means it's ready and waiting for a user to start using.
Note
If you manually change the Microsoft Entra group membership of a device, it will be automatically reassigned to the group for its device profile and removed from any conflicting groups.
You can monitor the progress of device registration on the main page. Possible states reported include:
State | Description |
---|---|
Registration Pending | Registration isn't completed yet. Check back later. |
Registration failed | Registration couldn't be completed. For more information, see Fix device registration errors. |
Ready for user | Registration succeeded. The device is now ready to be delivered to the user. Microsoft Managed Desktop will guide them through first-time set-up, so there's no need for you to do any further preparations. |
Active | The device has been delivered to the user and they've registered with your tenant. This state also indicates that they're regularly using the device. |
Inactive | The device has been delivered to the user and they've registered with your tenant. However, the user hasn't used the device recently (in the last seven days). |
Fix device registration errors
Error message | Details |
---|---|
Device not found | We couldn't register this device because we couldn't find a match for the provided manufacturer, model, or serial number. Confirm these values with your device supplier. |
Hardware hash not valid | The hardware hash you provided for this device wasn't formatted correctly. Double-check the hardware hash and then resubmit. |
Device already registered | This device is already registered to your organization. No further action required. |
Device claimed by another organization | This device has already been claimed by another organization. Check with your device supplier. |
Unexpected error | Your request couldn't be automatically processed. Contact Support and provide the Request ID: <requestId> |
Check the image
If your device has come from a Microsoft Managed Desktop partner supplier, the image should be correct.
You're also welcome to apply the image on your own if you prefer. To get started, contact the Microsoft representative you're working with and they'll provide you the location and steps for applying the image.
Deliver the device
Important
Before you hand off the device to your user, make sure you have obtained and applied the appropriate licenses for that user.
If all the licenses are applied, you can get your users ready to use the devices. Then, your user can start up the device and proceed through the Windows setup experience.