For windows 7 – Windows PE 3.1
Download AIK (Automated Installation Kit ) : http://www.microsoft.com/en-us/download/details.aspx?id=5753
1. Run from Start menu : Microsoft Windows AIK -> Deployment Tools Command Prompt (as administrator).
2. Type :
copype.cmd amd64 c:\winpe
or
copype.cmd x86 c:\winpe
The 64-bit version can boot 64-bit UEFI and 64-bit BIOS PCs.
The 32-bit version can boot 32-bit UEFI, 32-bit BIOS, and 64-bit BIOS PCs.
copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim
copy C:\Program Files\Windows AIK\Tools\x86\imagex.exe c:\winpe\iso\
Delete C:\winpe_x86\ISO\boot\bootfix.bin
if you do not want to be prompted to press any key when booting
3. Create an iso file to burn to cd. Type :
oscdimg -n -bC:\winpe_x86\etfsboot.com c:\winpe_x86\iso c:\winpe_x86\winpex86.iso
or for usb :
MakeWinPEMedia /UFD C:\WinPE_amd64 F:
4. Burn and boot or use network boot by pxe server
You will end up with a cmd prompt :
X:\windows\system32\>wpeinit
For windows 8.1 or 8 – Windows PE 5.1
Download – Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1
http://www.microsoft.com/en-us/download/details.aspx?id=39982
and install it.
1. Run from Start menu : Microsoft Windows AIK -> Deployment Tools Command Prompt (as administrator).
2. Type :
copype x86 C:\winpe
Delete C:\winpe\media\Boot\bootfix.bin
if you do not want to be prompted to press any key when booting
MakeWinPEMedia /ISO C:\winpe_x86 C:\winpe_x86\winpe_x86_win81.iso
or manually :
Set stick partition as active with diskpart :
list volume
select volume X:
active
Make it bootable :
bootsect.exe /nt60 x: /mbr
Copy the content of C:\winpe\media to the stick using explorer or cmd :
xcopy /herky C:\winpe\media X:
Add additional drivers : https://technet.microsoft.com/en-us/library/dn613857.aspx
Mount the image :
Dism /Mount-Wim /WimFile:”C:\WinPE_x86\ISO\sources\boot.wim” /index:1 /MountDir:”C:\WinPE_x86\mount”
Add the driver :
Dism /Add-Driver /Image:”C:\WinPE_x86\mount” /Driver:”C:\SampleDriver\oem.inf”
Unmount the image :
Dism /Unmount-Wim /MountDir:”C:\WinPE_x86\mount” /commit