Register the physical device with Windows Autopilot

  1. At the physical device's sign-in prompt, use Shift+F10 to open a command prompt.

  2. In the command prompt, run the following commands

  3. When prompted, sign in with a user that has the Intune Administrator role. After sign-in, the device is automatically enrolled in Intune. Make a note of the serial number.

PowerShell.exe -ExecutionPolicy Bypass 
[Net.ServicePointManager]::SecurityProtocol  = [Net.SecurityProtocolType]::Tls12 
Install-Script -name Get-WindowsAutopilotInfo -Force 
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned 
Get-WindowsAutopilotInfo -Online