The concept from a blog.
Here is my batch file:
:: for use with BDD 2007 v3.0.41.0 ::------Clean up. rd /q /s winpe_x86 ::------Initial PE build c: cd "c:\program files\windows aik\tools\petools" call copype.cmd x86 c:\winpe_x86 ::------Add additional file to D: in PE (not on the RAM) :: NOTE: These files show up on the “D:” drive after booting into WinPE. :: The reason for putting additional tools here is to reduce the memory footprint of :: WinPE. Everything in the X: drive is loaded into RAM at boot time! ::xcopy *.* c:\winpe_x86\iso /s/e/v/y xcopy "C:\program files\Windows AIK\Tools\x86\*.*" c:\winpe_x86\iso /s/e/v/y ::------Customize PE ::Mount the WinPE WIM file: imagex /apply c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount ::Install drivers ::peimg /inf=c:\drivers\vmware\vmxnet\win2k\vmware-nic.inf c:\winpe_x86\mount\Windows C:\winpe_x86_2>peimg /inf=c:\drivers\vmware\vmxnet\win2k\vmxnet.inf c:\winpe_x86\mount\Windows ::Install optional components peimg /install=*srt* c:\winpe_x86\mount\windows ::shows currently installed optional packages peimg /list c:\winpe_x86\mount\windows ::If you want ImageX (or any other utilities) in the RAM disk, put them there now: xcopy "C:\program files\Windows AIK\Tools\x86\*.*" c:\winpe_x86\mount\windows\system32\*.* /s/e/v/y ::Prep the PE image peimg /prep c:\winpe_x86\mount\Windows /f ::capture the mounted PE instace to a WIM imagex /append c:\winpe_x86\mount c:\winpe_x86\winpe.wim "MyWinPE" /verify ::Export the appended image to a bootable WIM file: imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winpe_x86\ISO\sources\boot.wim ::Create the Iso oscdimg -n –bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso
It seems to be failing at the line
imagex /boot /export /compress max c:\winpe_x86\winpe.wim 2 c:\winpe_x86\ISO\sources\boot.wim
Any help is appreciated.



Help
Back to top










