With autopilot HWID -online switch it’s possible to inject the HWID directly into Intune so there is no need to down and upload civ files.
Start laptop, in the OOBE bootscreen press (shift + F10)
PowerShell.exe -ExecutionPolicy Bypass Install-Script -name Get-WindowsAutopilotInfo -Force Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned Get-WindowsAutopilotInfo -Online
Azure AD Module is needed. If you need to install or import this module use this command :
Install-Module AzureAD import-module WindowsAutoPilotIntune
TIP : If you have no network connection type for network connections, Ncpa.cpl in the command prompt, this will open the network connections tab. From here it’s possible to add a wireless connection or press Windows Key + R to open run command, type ms-settings:network-wifi and hit enter.
Other useful commands :
command : systemreset
Start-Process powershell – Verb runAs (start PowerShell as admin)
command prompt : shutdown -s -t 0
More information about adding system to Autopilot can be found here : https://learn.microsoft.com/en-us/mem/autopilot/add-devices#diagnostics-page-hash-export
An easy method to export the hardware hash manually :
click Settings > Accounts > Access work or school.
In the Export your management log files tile, click Export.
Log files are exported to the Users\Public\Documents\MDMDiagnostics directory. The logs will include a CSV file with the hardware hash.
Or during OOBE, press Ctrl-Shift-D to bring up the Diagnostics Page. From this page, you can export logs to a thumb drive. The logs will include a CSV file with the hardware hash.