Microsoft Windows PE 3.0 is a stripped-down version of Windows 7 based on the 7100 kernel. Capable of running Windows-32 applications, Windows PE can be used for deploying, servicing and repairing Windows installations, as well as running other tools, such as Norton Ghost. Windows PE 3.0 is created using the Windows Automated Installation Kit (AIK) for Windows 7, a free application suite available on the Microsoft website. The Windows AIK for Windows 7 must be installed on a machine running Windows Vista or Windows 7.
Writing a guide for this sort of product is a bit odd for me, however I have been working on making a Ghost-based preinstalled environment recently and was asked to create an article as to what I did.
copype.cmdto copy the required Windows PE files to our working directory (here c:\winpe). >copype.cmd x86 c:\winpe
dism. To mount the image (stored in the working directory in the Windows Imaging Format, extension .wim), we will use
dism /mount-wim. >dism /mount-wim /wimfile:c:\winpe\winpe.wim /index:1 /mountdir:c:\winpe\mount A note on
dism- by using the
/?modifier at any stage, more information can be found about the tool and its options.
dismcommands during the image manipulation phase will refer to the image, by immediately proceeding the
/add-driverwill be used. Using
/add-driver /driver, individual drivers can be specified, by their .inf files, or entire directories (such as c:\drivers in the example), and even directory trees (with the
/recurseoption) can also be searched. Note that installing display drivers to your Windows PE image will cause the completed operating system to crash during boot. >dism /image:c:\winpe\mount /add-driver /driver:c:\drivers
/commitswitch, we tell
dismthat we want to make our changes permanent – in contrast, if you make a horrible mistake, then you can call the unmount with
/discardto roll back your changes. >dism /unmount-wim /mountdir:c:\winpe\mount /commit
diskpartutility (Windows Vista / 7 only) using the following commands (replacing
disk 1with your Flash drive's number as shown when running
list disk). >select disk 1
oscdimg, to do this. Note that the
–bswitch indicates where the boot sector for the CD will be, and the last parameter tells it where to create the image. Then, you can burn the ISO to CD using your favourite burning utility. >oscdimg –n –bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso
I hope you enjoyed reading this article. If you wish, you may view some of the other recent or popular things I have written, or subscribe to receive RSS updates. You can also add a comment, or share this article on Twitter or Facebook, below.