- On the client workstation, open Windows PowerShell as an administrator.
- Run the following commands in sequence.
New-Item -Type Directory -Path "C:\HWID" Set-Location C:\HWID Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned Install-Script -Name Get-WindowsAutopilotInfo -Force $env:Path += ";C:\Program Files\WindowsPowerShell\Scripts" Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csvNote:When prompted to install the NuGet package, click Yes. - Navigate to C:\HWID and locate AutopilotHWID.csv.This file contains the complete hardware ID (4K hardware hash) for the workstation.
- Upload the file to Microsoft Intune to register the device for Autopilot.
- Save the file to the workstation that you will use to access the Microsoft Entra portal.
- On a physical device, copy the file to a USB drive.
- On a virtual machine, right-click AutopilotHWID.csv, choose Copy, and then paste the file to your desktop outside of the virtual machine.