Windows Developer Preview – Create a WinPE 4.0 Boot ISO

You must be a Microsoft Partner or have an MSDN subscription in order to download ADK (formerly called WAIK).

Info here:

Extract/install ADK ( on a machine…

(The setup file is called “adksetup.exe” at the time of this writing after extracting the ZIP as you do not need to run each MSI individually 🙂 .)

Navigate to:

C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\Media

Copy this folder to your ISO builder machine with ADK installed:


Now, copy C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\en-us\winpe.wim into:

C:\Temp\WinPE\Media\Sources (make this new folder)

Rename the “winpe.wim” to “boot.wim
Copy both “” and “oscdmg.exe” from:

C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg



Now, with all the base tools in place, it is time to create the ISO:

Open Deployment Tools Command Prompt (Elevated).

Change your directory to:


Run the following command:

oscdimg.exe -b"" -n Media ISOFILENAME.iso

OK, that’s a brand new WinPE 4.0 “vanilla” disk for you.



What about some additional drivers or applications?

We are going to have to edit that default WinPE.wim (renamed above to boot.wim) with new stuff!

How-to add some optional components…

They all live in the following directory:

C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs

Copy them to:


Create a mount point for the base WIM.
This is a fancy sentence for make a new folder from the deployment tools command line:


From C:\Temp\WinPE, run:

imagex.exe /mountrw Media\Sources\boot.wim 1 c:\MOUNT

Add your new optional components:

dism /image:c:\MOUNT /add-package /PackagePath:"C:\Temp\WinPE\WinPE_OCs\"

Add the associated language portion of the package (otherwise the package you just added won’t work):

dism /image:c:\mount /add-package /PackagePath:"C:\Temp\WinPE\WinPE_OCs\en-us\"

NOTE: If you want Powershell support in your WinPE 4.0 environment (,, it also requires .NET4 (, to process. Make sure to add all four listed here.

Let’s add some drivers:

dism /image:c:\MOUNT /add-driver /driver:"C:\Path\To\Driver\NIC.inf"

If you are lazy and have stand-alone executables that can run, you can also just drop them right into the mounted ISO directory:

Make a new folder to hold them:

Copy tools you can run via command line here (Sysinternals’ Process Explorer, etc.)

Commit the changes (or lose all your hard work!):

imagex.exe /unmount /commit C:\MOUNT

Note: Make sure to close any Explorer.exe processes that have your working directories open, or the unmount process “sticks” and doesn’t unmount correctly.

Regenerate your ISO with the same command from above:

oscdimg.exe -b"" -n Media ISOFILENAMEv2.iso


Edit the WinPE Registry for your own customization:

Mount the hive from the deployment tools command prompt:

reg load HKLM\Temp c:\mount\Windows\System32\config\DEFAULT

Open REGEDIT on your builder workstation. Edit to your will manually or import a previously written .REG file

Example (if you opened MyCustomSettings.reg in Notepad I have saved on my desktop, it would read):

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Temp\Software\Sysinternals\Process Explorer]

Now you have green display text instead of the standard white and the EULA has been accepted for Sysinternals Process Explorer.
IMPORTANT: UNLOAD THE REGISTRY HIVE WHEN COMPLETED! (File > Unload Hive) if you don’t want to have that hive loaded permanently on your builder machine. Regenerate your ISO file using oscdimg.exe above.


Edit: Updated file paths. Assuming you are building an x86 WinPE environment on x86 OS.