Microsoft AutoPilot automatic registration script - to run it use:
RAW content of AutoPilot.ps1
: https://git.io/OAP
Automatic WebInstaller (works with Internet Explorer or special add-ones): https://cutt.ly/osmec
start https://cutt.ly/osmec
# Installation of appropriate script from https://www.powershellgallery.com/packages/Upload-WindowsAutopilotDeviceInfo/
Install-Script -Name Upload-WindowsAutopilotDeviceInfo -Force:$true
Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'SharedPC' -Confirm:$false
Start-Process -FilePath '%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe'