Create WinPE image
Steps to create a minimal WinPE
-
Install the Windows ADK: On a deployment computer, install the Windows Assessment and Deployment Kit (ADK) and its WinPE add-on. During the ADK setup, only the "Deployment Tools" are required.

-
Create working files: Run the Deployment and Imaging Tools Environment as an administrator and use the
copypecommand to create a working folder for WinPE files.copype amd64 C:\WinPE_amd64This command copies the base WinPE files to the specified directory.
-
Mount the image: Mount the default boot.wim image to a mount directory.
Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount" -
Remove unnecessary packages: To reduce the size, you can remove optional components. For a pure, consider removing scripting environments, which can significantly reduce the image size.
-
Add tools: Copy any additional tools (e.g., portable versions or specialized scripts) into the WinPE mounted image.
-
Unmount and commit: Unmount the image and save your changes.
Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit -
Create the ISO: Create a bootable ISO file from your customized WinPE directory.
MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso