A set of scripts that produce a bootable WinPE disc capable of installing a wide variety of Windows versions/SKUs.
These scripts make a lot of assumptions about local paths that are probably wrong on your computer.
It requires many files to create the bootable disc:
- Windows 11 ADK needs to be installed, along with the Windows PE add-on.
- Windows .isos, available from MSDN with a subscription.
- The latest Cumulative Updates for Windows 11, available from here.
- The latest Cumulative Updates for Windows Server 2025, available from here.
- The required Servicing Stack Updates for Windows, as noted on the individual cumulative update pages
- Surface drivers, available from here.
- Intel NIC drivers from here.
- Marvell NIC drivers from here. Search for "Marvell Public Drivers", "Windows", "AQC107".
From the .zip, extract the
20221028_Marvell_AQtion_x64_Win_v3.1.7\Win11\folder to$env:DISC_PATH\Drivers\MarvellACQ. - Framework WIFI drivers from here. Download the "Wi-Fi driver for use during Windows installation" link. From the .zip, extract the contents to
$env:DISC_PATH\Drivers\Framework_W11_24H2_OOBE_Wifi_Driver_Package - Intel Rapid Storage Drivers should be downloaded from here and extracted to
$env:DISC_PATH\Drivers\IRST64for better compatibility in WinPE. - 7-Zip needs to be installed.
To produce the installer, run Setup-Drivers.ps1 followed by Setup-WinPE.ps1 from an Administrator Deployment and Imaging Tools Environment.
To copy the resulting files to a new USB key (128 GB minimum), run the following commands as an administrator:
diskpartLIST DISKSELECT DISK nwherenis the disk number of your USB key. Make sure to get this right!CONVERT MBRThis command may fail with "The specified drive is not convertible". This is fine.CLEANCREATE PARTITION PRIMARY SIZE=13312FORMAT FS=FAT32 LABEL="WINPE" QUICKACTIVEASSIGNCREATE PARTITION PRIMARYFORMAT FS=EXFAT LABEL="DRIVERS" QUICKASSIGNEXIT
Then copy the contents onto the newly created drives with robocopy:
robocopy X:\WinPE_amd64\media Y: /MIR /FFT /DSTwhere X: is your local drive with a generated installed and Y: is the newly created "WINPE" partition.robocopy X:\WinPE_amd64_drivers\media Z: /MIR /FFT /DSTwhere X: is your local drive with a generated installed and Z: is the newly created "DRIVERS" partition.
To update an existing drive, just run the two robocopy commands above.