Skip to content

Instantly share code, notes, and snippets.

@JuryA
Last active October 12, 2019 14:29
Show Gist options
  • Select an option

  • Save JuryA/ae9a4f5eb96ca8abe03268aede8ab66f to your computer and use it in GitHub Desktop.

Select an option

Save JuryA/ae9a4f5eb96ca8abe03268aede8ab66f to your computer and use it in GitHub Desktop.
Microsoft AutoPilot automatic registration script - to run it use:RAW content of **`AutoPilot.ps1`**: [https://git.io/OAP](https://git.io/OAP)Automatic WebInstaller (_works with Internet Explorer or special add-ones_): [https://cutt.ly/osmec](htt
# 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 'AssignedPC' -Confirm:$false
# Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'SharedPC' -Confirm:$false
# Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'SharedEduPC' -Confirm:$false
# Start-Process -FilePath '%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment