To be able to start Intune Autopilot on any physical or virtual machine, you need to extract the HW hash from the machine and upload it to your Intune tenant.

Now, this is quite easy if you already have MECM co-management set up, since you can just fetch those from there or mark your co-managed device group with “Convert to Autopilot” feature.

But if you don’t have any of that, or need to fix this quickly and painlessly for your test devices, there is an easy way with Powershell.

You can run following commands before clean OS installation with your already installed OS (just note that you need internet access to fetch the script) or this can be also launched after you install clean Windows 10 OS. In that case, after selecting the setup language, press SHIFT + F10 (or via on-screen keyboard on VM with SHIFT + FN + F10), type in “powershell” and proceed with these commands:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
Install-Script -Name Get-WindowsAutoPilotInfo
Get-WindowsAutoPilotInfo.ps1 -OutputFile C:\AutoPilotHWID.csv

Note that you might be needed to confirm all prompts for script download and other pre-requisities. You can select the output file folder to your flash drive or whatever – just know that you will need to upload this file your Intune tenant.