Collecting Hardware IDs for Windows Autopilot
This article is not intended to provide instructions but is a reference point. You are welcome to use it but we provide no warranty for it. If you need consultancy support on this for your business/deployment then get in touch.
From an existing Windows 10/11 machine already at the desktop.
Powershell:
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
The hash will appear in C: