Interactively enroll Windows Device with Autopilot
To enroll a Windows device into Intune via Windows Autopilot, it is needed to register the serial number and hardware id in the tenant via an interactive login. The user has to log in as "Intune Administrator" and upload the information via Graph API into Intune. A GroupTag can also be set in the same step.
Guide
Open CMD window with "SHIFT" + "F10".
powershell
Set-ExecutionPolicy Unrestricted
Install-Script -Name "Get-WindowsAutopilotInfo" -Force
Get-WindowsAutopilotInfo.ps1 -Online -GroupTag "MW_BKWPRD_CH" -TenantId "bkwfmbenergie.onmicrosoft.com”
Restart-Computer