Everybody is talking about Windows Autopilot, this blog is not about what autopilot is but on how to get that hardware information for future use with Windows Autopilot as part of the OSD deployment process with Microsoft Deployment Toolkit.
Windows Autopilot will first be really great when we can deliver a brand new device directly to the end user, but for now the IT department needs to unbox the devices and do some manual work. This example is for a IT department that want to do a Windows Autopilot POC or they know that Windows Autopilot is going to be used in the near feature.
Prerequisite for collecting hardware information:
- Windows 10 1703 or later
- Harvest hardware hash in full OS
You can use Michael Niehaus’s script from GitHub or you can create your own.
There is different ways of doing this with MDT – personally I like to run custom scripts as and application – so that what I will do in this example.
First you create a application in MDT
Select Application with source files
- Publisher: Microsoft
- Application Name: Get-WindowsAutopilotInfo
Point to where the script is downloaded
Specify the name of the directory that should be created
Command line: powershell -executionPolicy bypass -file “Get-WindowsAutoPilotInfo.ps1” -OutputFile \\vmdt01\autopilot$\MyComputer.csv -Append
Note: Outputfile need to point to a place where the MDT process have write access
Add a application in your MDT Task Sequence
Select the Microsoft Get-WindowsAutoPilotInfo application
Important : Hardware hash is only available in WMI in full OS – so you need to run the application in full OS and not in WinPE
Now you are ready to deploy Windows 10 and collect the hardware information used with AutoPilot.
After the deployment you have collected the information you need for AutoPilot and are ready to upload in Microsoft Store for Business
Read more about Windows Autopilot here: