The process of creating a Windows PE 3.0 disk has changed slightly from the previous version. Luckily the Windows PE User’s Guide that ships with the WAIK has all the information you’ll ever need. To get started download the WAIK for Windows 7 RC here. Then follow the steps in the section “Windows PE Walkthroughs”. I’ve provided the batch file I use to create a generic WinPE 3.0 ISO below.
@Echo off" REM ******************************************************************************** REM head block REM Setup SET PETOOLS=C:\Program Files\Windows AIK\Tools\PETools SET ARCH=x86 SET WORKINGDIR=%~dp0windowspe-%ARCH% IF NOT EXIST "%WORKINGDIR%" Goto :COPYPE Echo "%WORKINGDIR%" exists, Removing.... rmdir "%WORKINGDIR%" /S /Q :COPYPE cd /d "%PETOOLS%" call copype.cmd %ARCH% "%WORKINGDIR%" REM Copy Base WIM to boot.wim copy "%WORKINGDIR%\winpe.wim" "%WORKINGDIR%\ISO\sources\boot.wim" REM Mount boot.wim Dism /Mount-Wim /WimFile:"%WORKINGDIR%\ISO\sources\boot.wim" /index:1 /MountDir:"%WORKINGDIR%\mount" REM Add Optional Components Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\winpe-wmi.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\en-us\winpe-wmi_en-us.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\winpe-hta.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\en-us\winpe-hta_en-us.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\winpe-mdac.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\en-us\winpe-mdac_en-us.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\winpe-scripting.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\en-us\winpe-scripting_en-us.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\winpe-wmi.cab" Dism /image:"%WORKINGDIR%\mount" /Add-Package /PackagePath:"%PETOOLS%\%ARCH%\WinPE_FPs\en-us\winpe-wmi_en-us.cab" REM Copy Imagex into the Windows Dir copy "C:\Program Files\Windows AIK\Tools\%ARCH%\imagex.exe" "%WORKINGDIR%\mount\Windows" REM COpy Tools xcopy %~dp0Tools %WORKINGDIR%\ISO /E /S REM Unmount the WIM Dism /unmount-Wim /MountDir:"%WORKINGDIR%\mount" /Commit REM Create the ISO oscdimg -n -b"%WORKINGDIR%\etfsboot.com" "%WORKINGDIR%\ISO" "%WORKINGDIR%\winpe_x86.iso"
You may want to comment out the line with “xcopy %~dp0Tools” at the beginning. I usually copy a bunch of tools onto my WinPE disk using this tools directory.
Page rendered at Saturday, March 13, 2010 4:30:55 AM (E. Australia Standard Time, UTC+10:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.