AutoPilot in Audit Mode
If the AutopilotConfigurationFile.json isn't going to work for you, another method to consider is Manual Registration in Audit Mode
Use-WindowsUnattend.audit.autopilot
I've taken the time to write a function which will drop an Unattend.xml to kick off Audit Mode. Here is what is in the XML
You will need to run this function from WinPE after the OS has been dropped. I'll look into adding a Start-OSDCloud parameter to do this automatically if necessary
As you can see the function will drop the Unattend.xml and Use-WindowsUnattend to inject it into the Offline OS. Since the OSD PowerShell Module is also needed, it will copy the version that is in WinPE directly into the Offline OS. Simply reboot after this is complete
Enter Audit Mode
This process on a good machine can take 5-10 minutes to generate the Administrator profile, so just be patient.
Once logged in, the OSD Module will take over and Set-ExecutionPolicy RemoteSigned
for you (remember to set this back), and then wait for an Internet connection to PowerShell Gallery using the new Wait-WebConnection
OSD function
Once PowerShell Gallery is available, the Get-WindowsAutoPilotInfo
Script will be installed
Finally, dropping you to the Desktop. From here, simply open PowerShell and run Get-WindowsAutoPilotInfo -Online
with whatever parameters you need. When you are all done, just press OK in the Sysprep Window to reboot to OOBE. Enjoy!
Last updated