- Download Windows 7 AIK ISO file
https://www.microsoft.com/en-us/download/details.aspx?id=5753
- Burn the ISO or extract it to a folder (e.g., using 7zip)
- Run StartCD.exe
- Choose the “Windows AIK Setup” option
- When complete, navigate to Start->all programs -> Microsoft Windows AIK -> Deployment Tools Command Prompt
- In the Deployment Tools Command Prompt window, issue the following commands.
Note: if needing a 32-bit version of Windows PE, replace “amd64 with “x86”
copype amd64 c:\WinPE_amd64
copy c:\WinPE_amd64\winpe.wim c:\WinPE_amd64\iso\sources\boot.wim
- Insert your flash drive
- Launch diskpart (Start button-> then type diskpart)
- Locate your flash drive with this commandlist disk
- Select it, format it and make it bootable (in this case the flash drive was disk 1) using these commands:
select disk 1
clean
create partition primary
active
format fs=ntfs quick label=WinPE_amd64
assign
exit
- Determine what drive letter has been assigned to your flash drive
- The last step is to copy files to flash drive (in this case drive letter of the flash drive was F:
xcopy c:\WinPE_amd64\iso\*.* F:\ /
- If you want to create an ISO to use later:
oscdimg -n -bc:\winpe_amd64\etfsboot.com c:\winpe_amd64\iso c:\winpe.iso