Quickly register an AutoPilot device during OOBE

Here is the quick reference on harvesting AutoPilot device ID’s from OOBE using powershell. I created post just so I have a quick reference to copy+paste from whenever I need to do this for testing.

  1. Shift+F10 to enter command prompt from OOBE

2. Type

Powershell

3. Type

Install-Script -Name Get-WindowsAutoPilotInfoYYSet-ExecutionPolicy bypassGet-WindowsautoPilotInfo.Ps1 -Online

4. Provide credentials for your Azure AD admin account

5. Wait for the registration to complete and say “All devices sync’d”

--

--