So, workstation image capture is now performed using “XImage.exe” (soon to be renamed ImageX.exe). Although multiple capture methods are supported, use of Windows PE 2.0 is encouraged.
I obtained the February CTP of the Windows Automated Installation Kit (AIK). This contains several utilities for working with and creating Windows “WIM” image files, and also includes WIMs for Windows PE 2.0.
Here is the process I am working on for building a bootable Windows PE image:
- Install the Windows AIK
- cd %ProgramFiles%Windows AIKToolsx86 (this directory contains all of the CLI tools for WinPE image building)
- mkdir winpebuildbuild
- ximage /apply boot.wim 1 c:winpebuildbuild (this extracts image index “1” from the boot.wim in the AIK directory to the specified build directory. All of the WinPE files are now available on the local NTFS drive)
- To install additional network drivers to the PE build:
peimg /inf=[path to NIC driver INF] c:winpebuildbuildwindows
- copied “ximage.exe” and all other .dll files from the working AIK directory to c:winpebuildbuildwindowssystem32
- Now save a copy of the working build directory, as the next step will make irreversable changes to the build directory:
ximage /capture c:winpebuildbuild c:imageswinpe1.wim “Custom Base Image” /compress /max
(this captures the build directory to a WIM file “winpe1.wim” with descriptor “Custom Base Image”, using maximum image compression to save drive space.)
- Now we prepare the build directoryfor capture. This step optimizes the build, but also prevents future use of the “peimg /inf” command:
peimg /prep c:winpebuildbuildwindows
- Now we generate a WIM file of our customized build:
ximage /capture c:winpebuildbuild c:winpebuildboot.wim “WinPE Image with VMWare Drivers” /boot /compress max
- In the next steps we create a separate directory structure which from which we will build a bootable .ISO WinPE image:
mkdir winpesources, mkdir winpeboot
- copy bootmgr c:winpe
- xcopy /cherky .boot c:winpeboot (relative to the working x86 AIK directory) (these three steps add files necessary for building a bootable ISO to the directory structure)
- ximage /boot /export /compress max c:winpebuildboot.wim 1 c:winpesourcesboot.wim (copies the custom WIM to the new directory scructure… I wonder if I could just use “xcopy”?)
- oscdimg /n /b.bootetfsboot.com c:winpe c:winpe.iso (creates a bootable ISO from the boot.wim using the boot code in “etfsboot.com”.)
AARGH! It just does not work still! No networking is available when I boot to WinPE!!!!