
Removed support for Out-ConsoleGridView for less required dependencies.Updated module dependencies to be auto-installed.Moved Invoke-Provision out of the WinPE media and now pulling from GitHub.Adding in warning messages to invoke-provision script.Removed daily flag from pwsh7 installer ( Thanks jmaystahl).
Autopilot provisioning path now tested (Thanks Rob). USB size check implemented - no smaller than 8gb. ImageIndex & DiskNum variables added to allow non-interactive use of module. If there are better options, please let me know. This will stay up as long as it doesn't begin to cost me too much - if it does, I will take it down. Lastly, I'm providing a copy of WinPE (which also includes the "Invoke-Provision.ps1" file) on a personal Azure storage account. If you find a problem and want to contribute - please do! I love community involvement and will be as active as my schedule allows. I'm providing this solution as an educational tool to assist the IT-Pro community with absolutely ZERO warranties or guarantees - I know it works for me, but if it doesn't for you - read the code and fix it. I'd like to allow custom *.wim files to be added during the initial process. Allowing custom installation media - currently the solution expects that you will use a Windows 10 ISO to extract the install.wim file. Warnings and the ability to wipe the USB after use - as this solution is VERY volatile, it may be a good idea to trash the USB after being used. If time permits, I'm looking to add the following additions to the solution:
Once the provisioning script has completed, removing the USB and rebooting the device will bring us to the Windows 10 OOBE and eventually the Autopilot enrollment screen from the configuration file we captured in the first step.
Once you've configured a USB with the tool, using it as a boot device will launch WinPE and kick off "Invoke-Provision.ps1" to configure Windows 10 on the device and apply the Autopilot configuration file. Running the Publish-ImageToUSB function will configure a USB with a copy of WinPE, Windows 10 & the required provisioning scripts. $params = " " windowsIsoPath = "C:\path\to\win10.iso " getAutopilotCfg = $true imageIndex = 5 # Optional parameter diskNum = 1 # Optional parameter