Creating a Windows PE 3.0 CD ISO: Difference between revisions
Jump to navigation
Jump to search
BenFranske (talk | contribs) No edit summary |
BenFranske (talk | contribs) |
||
Line 36: | Line 36: | ||
# Mount the boot.wim file to allow you to add additional packages | # Mount the boot.wim file to allow you to add additional packages | ||
#* '''dism /Mount-Wim /WimFile:c:\winpe_x86\iso\sources\boot.wim /index:1 /MountDir:C:\winpe_x86\mount''' | #* '''dism /Mount-Wim /WimFile:c:\winpe_x86\iso\sources\boot.wim /index:1 /MountDir:C:\winpe_x86\mount''' | ||
#* Note that you can also mount WIM files with the ImageX command. | #* Note that you can also mount and dismount WIM files with the ImageX command. | ||
# Add the HTA and MDAC packages to your mounted WIM file | # Add the HTA and MDAC packages to your mounted WIM file | ||
#* '''dism /Image:c:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"''' | #* '''dism /Image:c:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"''' |
Revision as of 20:47, 15 June 2010
Creating a Basic CD
Instructions for creating a Windows PE 3.0 (WinPE) bootable CD image with the ImageX.exe program used for creating WIM format images of Windows 7 systems. These steps would typically be done on a technician computer and not on the system which you are creating the image of.
- Download the Microsoft Windows 7 Automated Installation Kit (WAIK) which is distributed as an ISO image file and use it to install WAIK on the technician computer.
- Run a command prompt as administrator.
- This can be done with Start -> All Programs -> Accessories and right-clicking on "Command Prompt" and selecting "Run as Administrator"
- Change the working directory to the PETools folder of the WAIK installation
- cd C:\Program Files\Windows AIK\Tools\PETools\
- Use the copype.cmd script to create a WinPE image build directory copype.cmd <architecture> <destination>
- To create a 32-bit WinPE build in the c:\winpe_x86 directory: copype.cmd x86 c:\winpe_x86
- Set the winpe.wim file as the bootable system for the CD by copying it from the main build directory into the iso\sources directory as boot.wim
- copy c:\winpe_x86\winpe.wim c:\winpe_x86\iso\sources\boot.wim
- Copy the ImageX.exe program from the WAIK tools into the WinPE build ISO directory
- copy “c:\Program Files\Windows AIK\Tools\x86\imagex.exe” c:\winpe_x86\iso
- Create a new bootable ISO image file with the oscdimg tool using the ISO directory as the source
- oscdimg -n c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso -n -bc:\winpe_x86\etfsboot.com
- Note that there is no space between the -b flag and the location of etfsboot.com which is the El Torrito boot sector and which makes the CD image bootable.
- The created CD image can be used as a virtual CD in virtualization software or burned to a CD and used to boot physical systems into WinPE with the ImageX utility included.
Creating a CD with Added Packages
Instructions for creating a Windows PE 3.0 (WinPE) bootable CD image with the HTA and MDAC packages and ImageX utility used for creating WIM format images of Windows systems. These steps would typically be done on a technician computer and not on the system which you are creating the image of.
- Download the Microsoft Windows 7 Automated Installation Kit (WAIK) which is distributed as an ISO image file and use it to install WAIK on the technician computer. The Windows 7 AIK will work with Windows Server 2003, Windows Vista, Server 2008 and Windows 7 systems.
- Run a command prompt as administrator.
- This can be done with Start -> All Programs -> Accessories and right-clicking on "Command Prompt" and selecting "Run as Administrator"
- Change the working directory to the PETools folder of the WAIK installation
- cd C:\Program Files\Windows AIK\Tools\PETools\
- Use the copype.cmd script to create a WinPE image build directory copype.cmd <architecture> <destination>
- To create a 32-bit WinPE build in the c:\winpe_x86 directory: copype.cmd x86 c:\winpe_x86
- Change the working directory to the WinPE image build directory you just created
- cd c:\winpe_x86
- Cleanup any previous WIM files you may have been working on with the DISM tool
- dism /Cleanup-Wim
- Set the winpe.wim file as the bootable system for the CD by copying it from the main build directory into the iso\sources directory as boot.wim
- copy c:\winpe_x86\winpe.wim c:\winpe_x86\iso\sources\boot.wim
- Mount the boot.wim file to allow you to add additional packages
- dism /Mount-Wim /WimFile:c:\winpe_x86\iso\sources\boot.wim /index:1 /MountDir:C:\winpe_x86\mount
- Note that you can also mount and dismount WIM files with the ImageX command.
- Add the HTA and MDAC packages to your mounted WIM file
- dism /Image:c:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"
- dism /Image:c:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab"
- Verify the packages installed in your image
- dism /Image:c:\winpe_x86\mount /Get-Packages
- Copy the ImageX.exe program from the WAIK tools into your mounted WinPE image system directory
- copy “c:\Program Files\Windows AIK\Tools\x86\imagex.exe” c:\winpe_x86\mount\windows
- Commit your changes to the WIM file and dismount it
- dism /Unmount-Wim /MountDir:C:\winpe_x86\mount\ /commit
- Create a new bootable ISO image file with the oscdimg tool using the ISO directory as the source
- oscdimg -n c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso -n -bc:\winpe_x86\etfsboot.com
- Note that there is no space between the -b flag and the location of etfsboot.com which is the El Torrito boot sector and which makes the CD image bootable.
- The created CD image can be used as a virtual CD in virtualization software or burned to a CD and used to boot physical systems into WinPE with the ImageX utility included.