PREREQUISITES: 
Windows Assessment and Deployment Kit (Windows ADK)
Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1 Update

Right-click on “Deployment and Imaging Tools Environment” -> Run as Administrator.


AMD64

HOW TO CREATE A WINPE_AMD64 ISO FILE

copype amd64 C:\WINPE_AMD64
Makewinpemedia /iso C:\WINPE_AMD64 C:\WINPE_AMD64\WINPE_AMD64.iso

HOW TO CREATE A BOOTABLE WINPE_AMD64 USB STICK

copype amd64 C:\WINPE_AMD64
Makewinpemedia /ufd C:\WINPE_AMD64 X:

HOW TO CREATE A BOOTABLE WINPE_AMD64 USB STICK w/WMI, DISM (IMAGEX) & BCDBOOT tools

copype amd64 C:\WINPE_AMD64

dism /mount-image /imagefile:C:\WINPE_AMD64\media\sources\boot.wim /index:1 /mountdir:C:\WINPE_AMD64\mount

dism /image:C:\WINPE\mount /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-wmi.cab"

dism /image:C:\WINPE\mount /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-wmi_en-us.cab"

xcopy /s "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\DISM" C:\WINPE_AMD64\mount\DISM\

xcopy /s "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\BCDBOOT" C:\WINPE_AMD64\mount\bcdboot\

Dism /unmount-image /mountdir:C:\WINPE_AMD64\mount /commit

Makewinpemedia /ufd C:\WINPE_AMD64 X:

X86

HOW TO CREATE A WINPE_X86 ISO FILE

copype amd64 C:\WINPE_AMD64
makewinpemedia /iso C:\WINPE_X86 C:\WINPE_X86\WINPE_X86.iso


HOW TO CREATE A BOOTABLE WINPE_X86 USB STICK

copype x86 C:\WINPE_X86
makewinpemedia /ufd C:\WINPE_X86 X:

HOW TO CREATE A BOOTABLE WINPE_X86 USB STICK w/WMI, DISM (IMAGEX) & BCDBOOT tools

copype x86 C:\WINPE_X86

dism /mount-image /imagefile:C:\WINPE_X86\media\sources\boot.wim /index:1 /mountdir:C:\WINPE_X86\mount

dism /image:C:\WINPE_X86\mount /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\winpe-wmi.cab"

dism /image:C:\WINPE_X86\mount /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\en-us\winpe-wmi_en-us.cab"

xcopy /s "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\DISM" C:\WINPE_X86\mount\DISM\

xcopy /s "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\BCDBOOT" C:\WINPE_X86\mount\bcdboot\

dism /unmount-image /mountdir:C:\WINPE_X86\mount /commit

makewinpemedia /ufd C:\WINPE_X86 X: