Use this when using or customizing Windows PE.
Windows PE
Windows PE is a small Windows used to install, deploy and repair Windows. It runs from USB, ISO or PXE, includes cmd, DISM and diskpart, and can be extended with drivers and PowerShell.
1. WinPE from the ADK add-on.
2. Add drivers: Dism /Add-Driver to boot.wim.
3. Network in WinPE: wpeutil initializenetwork, ipconfig.
4. Storage visible: diskpart → list disk.
5. Logs X:\Windows\Panther.
WinPE boots → drivers → network/storage → deployment tools
Context & applicabilityCommon mistakes · platform/version boundaries
- Missing network or storage drivers in WinPE (
drvloador add with DISM). - Old WinPE versions that do not support new hardware.
- WinPE has a 72-hour session limit — it reboots automatically.
- Forgetting that WinPE runs from RAM (X:), so changes are lost at reboot.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- WinPE is a small temporary Windows for setup and repair.
- Add drivers and optional components like PowerShell.
- It restarts after 72 hours.
Get-ComputerInfo -Property BiosFirmwareType— UEFI or legacy BIOSGet-Disk | Select Number,PartitionStyle— GPT or MBRGet-Content C:\Windows\Panther\setupact.log -Tail 50— setup logdism /Get-WimInfo /WimFile:<install.wim>— images in a WIM
ReferenceWhy it matters1 section · depth on demand
Using Windows PE
- Create media with the ADK + WinPE add-on:
copype amd64 C:\WinPEandMakeWinPEMedia /UFD C:\WinPE E:. - Add drivers (
dism /Add-Driver) and optional components (PowerShell, WMI) as needed. - Used by Setup, MDT/ConfigMgr, WDS and recovery (WinRE is based on WinPE).
WinPE restarts every 72 hours and is not a general-purpose OS.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Windows PE is a minimal Windows used to install, deploy and repair Windows. Build it with the ADK and the WinPE add-on:
copype amd64 C:\WinPE_amd64
Dism /Mount-Image /ImageFile:C:\WinPE_amd64\media\sources\boot.wim /Index:1 /MountDir:C:\WinPE_amd64\mount
Dism /Add-Package /Image:C:\WinPE_amd64\mount /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-PowerShell.cab"
Dism /Add-Driver /Image:C:\WinPE_amd64\mount /Driver:C:\drivers\storage /Recurse
Dism /Unmount-Image /MountDir:C:\WinPE_amd64\mount /Commit
MakeWinPEMedia /UFD C:\WinPE_amd64 E:
WinPE restarts after 72 hours, runs from RAM (X:) and needs storage/NIC drivers for newer hardware.
ReferenceConfiguration & state1 section · depth on demand
Building WinPE media
copype amd64 C:\WinPE_amd64
Dism /Mount-Image /ImageFile:C:\WinPE_amd64\media\sources\boot.wim /Index:1 /MountDir:C:\WinPE_amd64\mount
Dism /Add-Package /Image:C:\WinPE_amd64\mount /PackagePath:"...\WinPE-PowerShell.cab"
Dism /Unmount-Image /MountDir:C:\WinPE_amd64\mount /Commit
MakeWinPEMedia /UFD C:\WinPE_amd64 F:
Documented example, not captured output. Requires the ADK and the WinPE add-on.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Installation & Deployment → Windows PE. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/deployment/ · confidence 94%