1

Modern Device Management

 2 years ago
source link: https://jannikreinhard.com/2022/08/24/check-autopilot-enrollment-prerequisite/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Modern Device Management

Jannik Reinhard

autopilot-enrollment-prerequisite-check.png?w=810

Everyone who has enrolled a few devices with autopilot in his life and has encountered errors knows the problem that it can quickly be very cumbersome to find the problem why an enrolment fails. Especially when it comes to network endpoints that are not reachable it can be very time consuming to find them. To enroll a device with autopilot there are also some prerequisites that have to be fulfilled. To check this before the enrollment I have created a script that helps you to check these requirements.

image-59.png?w=956

Prerequisites

There is a very long Microsoft docs article that explains what network endpoints need to be reached to enroll a device but also to use services like delivery optimization and co. You can find the article at the following link. In addition to this, autopilot is only supported on the following Windows versions:

  • Windows 10 Pro
  • Windows 10 Pro Education
  • Windows 10 Pro for Workstations
  • Windows 10 Enterprise
  • Windows 10 Education
  • Windows 10 Enterprise LTSC

What does the script provide?

You will get an overview of various attributes that are worth looking at before enrollment. First you get general device info’s to check e.g. which Windows edition is installed or if the device has a TPM.

image-55.png?w=693

Next you get adapter information to see which NIC is installed on the device and which IP address it has.

image-57.png?w=605

Now comes the exciting part. In this part I make connection tests on different URLS which are important for an autopilot enrollemt. For each url you will get a status.

image-58.png?w=767

How to use the script

  • Press Shift + F10 during the OOBE phase to open a CMD (mostly you have to press the fn key)
image-49.png?w=1010
  • Type in powershell
image-50.png?w=751
  • Run the following command and approve with Y/A:
Install-Script -Name Check-AutopilotPrerequisites
image-53.png?w=1010
  • Change the execution policy that you can run the script:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
  • Run the script with Check-AutopilotPrerequisites.ps1
image-54.png?w=800

Conclusion

If you have any ideas how I can extend or improve the script then let me know I’ll be more than happy to incorporate this. You can find the source code at the following link. Hope I could help you with this script. Have fun with it.

Stay healthy, Cheers
Jannik


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK