/WinPE-Installer

A custom Windows installer based on WinPE

Primary LanguagePowerShellBSD 2-Clause "Simplified" LicenseBSD-2-Clause

WinPE-Installer

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 2022, 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 with Wired_driver_29.0_x64.exe extracted.
  • 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.
  • Intel Rapid Storage Drivers should be downloaded from here and extracted to $env:DISC_PATH\Drivers\IRST64 for 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:

  • diskpart
  • LIST DISK
  • SELECT DISK n where n is the disk number of your USB key. Make sure to get this right!
  • CONVERT MBR This command may fail with "The specified drive is not convertible". This is fine.
  • CLEAN
  • CREATE PARTITION PRIMARY SIZE=13312
  • FORMAT FS=FAT32 LABEL="WINPE" QUICK
  • ACTIVE
  • ASSIGN
  • CREATE PARTITION PRIMARY
  • FORMAT FS=EXFAT LABEL="DRIVERS" QUICK
  • ASSIGN
  • EXIT

Then copy the contents onto the newly created drives with robocopy:

  • robocopy X:\WinPE_amd64\media Y: /MIR /FFT /DST where 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 /DST where 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.