Ultimate Guide to Creating a Windows Preinstallation Environment (WinPE)
Build a bootable WinPE USB for deployment, recovery, and troubleshooting.
Overview
WinPE (Windows Preinstallation Environment) is a lightweight bootable Windows used for deploying, recovering, and repairing PCs. This guide shows how to build a bootable WinPE USB using the Windows ADK.
Windows Preinstallation Environment (WinPE).
Key Takeaways
- WinPE is a minimal, bootable Windows for deployment/recovery.
- Built with the Windows ADK plus the WinPE add-on.
- Use copype to create the working files.
- MakeWinPEMedia writes a bootable USB.
What WinPE Is Used For
- Deploying Windows images (with DISM).
- Recovering data and repairing boot problems.
- Running disk/partition tools offline.
- Automating installs in enterprise environments.
Step 1: Install ADK and WinPE Add-On
Note: Download the Windows ADK and WinPE add-on only from Microsoft’s official site, matching your Windows version.
1. Install the Windows ADK (Deployment Tools).
2. Install the matching "Windows PE add-on for the ADK".
3. Restart if prompted.
Step 2: Create the WinPE Working Files
1. Open "Deployment and Imaging Tools Environment" as administrator.
2. Run: copype amd64 C:\WinPE_amd64
3. This creates the WinPE working folder structure.
Step 3: Customize (Optional)
1. Mount the boot.wim with DISM to add drivers, packages, or scripts.
2. Add storage/network drivers your hardware needs.
3. Commit and unmount the image.
Step 4: Create the Bootable USB
1. Insert a USB drive (it will be formatted).
2. Run: MakeWinPEMedia /UFD C:\WinPE_amd64 F: (replace F: with the USB letter).
3. Boot the target PC from the USB to enter WinPE.
Troubleshooting
Problem: copype/MakeWinPEMedia not found.
Solution: Open the "Deployment and Imaging Tools Environment" shortcut, which sets the correct paths; ensure the WinPE add-on is installed.
Problem: USB won’t boot.
Solution: Enable USB boot in BIOS/UEFI, disable Secure Boot if needed, and recreate the media with MakeWinPEMedia.
Problem: Missing storage/network in WinPE.
Solution: Inject the required drivers into boot.wim with DISM before creating the media.
Problem: Version mismatch.
Solution: Use the ADK and WinPE add-on that match your target Windows version.
Conclusion
Building WinPE comes down to installing the ADK + WinPE add-on, running copype for the working files, optionally injecting drivers, and writing a bootable USB with MakeWinPEMedia. The result is a portable environment for deployment, recovery, and repair.















