Tag: windows

Windows PE

Recently I needed to flash some hardware that could only be done through windows.  I didn’t want to install windows on that machine just for that.  Instead from my Window 10 machine I used Window PE to create a bootable windows environment for repairs and what not.

1. Download Window Assessment and Deployment Kit
https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install
I just used the default options.

2. Download the Windows PE Addon
https://go.microsoft.com/fwlink/?linkid=2087112
Install it.

3.  Create WinPE local files
Start Menu->Windows Kits->Deployment and Imaging Tools Environment
(I needed x86, but you could replace that with amd64)
copype x86 C:\WinPE_x86

4. Create USB Partitions using Deployment and Imaging Tools Environment
diskpart
list disk
select
clean
rem === Create the Windows PE partition. ===
create partition primary size=2000
format quick fs=fat32 label=”Windows PE”
assign letter=P
active
rem === Create a data partition. ===
create partition primary
format fs=ntfs quick label=”Other files”
assign letter=O
list vol
exit

5. Create Bootable Media where P: is the USB drive using Deployment and Imaging Tools Environment as Administrator.
makewinpemedia /ufd C:\WinPE_x86 P:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive
https://recoverit.wondershare.com/windows-pe/how-to-create-a-windows-pe-bootable-usb-drive.html

 https://sourcedaddy.com/windows-7/customizing-windows-pe-image.html
imagex /mountrw c:\WinPE_x86\media\sources\boot.wim 1 c:\WinPE_x86\mount\

copy desired apps to c:\WinPE_x86\mount\

save image and do step 5.
 https://sourcedaddy.com/windows-7/customizing-windows-pe-image.html
imagex /unmount /commit c:\WinPE_x86\mount