Capturing the Hardware ID and Resetting the Out-of-Box Experience
Before you begin
About this task
In preparation for setting up Autopilot, you must obtain the device's hardware ID and reset the device to its purchased condition.
Procedure
-
On the device to enroll, open an elevated PowerShell terminal and run the
following commands in order:
Note: This only applies to devices not configured by the OEM or reseller.
md c:\HWID Set-Location c:\HWID Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force Install-Script -Name Get-WindowsAutopilotInfo -Force $env:Path += ";C:\Program Files\WindowsPowerShell\Scripts" Get-WindowsAutopilotInfo.ps1 -OutputFile AutopilotHWID.csv
-
When prompted to install the NuGet package, select [Y]
Yes.
When this installation finishes, a .csv file titled AutopilotHWID.csv appears on the C:\ drive.
- Copy the .csv file containing the hardware ID to a removable storage device for later use when setting up Autopilot registration.
- Reset the Windows Modern device to the default out-of-box experience. You can learn more here: Reset your PC.