Skip to main content

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.
PowerShell Script 
powershell
Set-ExecutionPolicy Unrestricted
Install-Script -Name "Get-WindowsAutopilotInfo" -Force
Get-WindowsAutopilotInfo.ps1 -Online -GroupTag "MW_BKWPRD_CH"<yourgrouptagname>" -TenantId "bkwfmbenergie.<yourtenantidname>.onmicrosoft.com”
Restart-Computer