Step
1: Set up a Windows PE build environment
In this step, you create a required
directory structure that supports building a Windows PE image.
- On your technician computer, click Start, point
to All Programs, point to Windows OPK or Windows AIK,
right-click Deployment Tools Command Prompt, and then select Run
as administrator.
The menu shortcut opens a command-prompt window and automatically sets environment variables to point to all of the necessary tools. By default, all tools are installed at C:\Program Files\<kit>\Tools, where <kit> can be Windows OPK or Windows AIK. - At the command prompt, run the Copype.cmd script. The
script requires two arguments: hardware architecture and destination
location.
copype.cmd x86 c:\winpe_x86
3. Running the script creates the following directory structure
and copies all of the necessary files for that architecture. For example,
\Winpe_x86
\Winpe_x86\ISO
\Winpe_x86\Mount
\Winpe_x86
\Winpe_x86\ISO
\Winpe_x86\Mount
4.
Copy the base image (Winpe.wim) into
the \Winpe_x86\ISO\sources folder, and rename the file to Boot.wim.
5.
copy
c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim
Step 2: Add additional customizations
This step is optional but recommended.You can use ImageX to add applications and scripts to your Windows PE image that you might need while working in Windows PE. ImageX is a tool for capturing and applying images during deployment scenarios. For example, type the following command to copy the ImageX tool to the Windows PE image.
copy "c:\program files\<version>\Tools\x86\ImageX.exe" c:\winpe_x86\iso\
Step
3: Prepare the UFD
Before you can place Windows PE
on a UFD, you must format the UFD using the version of DiskPart from Microsoft
Vista, Windows 7 or Windows PE 2.0 or higher.
1.
From a running valid operating
system or Windows PE session, insert your UFD.
2.
At a command prompt, use Diskpart to
format the UFD as FAT32 spanning the entire UFD, and set the partition as
active. For example,
3. diskpart
4. select
disk 1 (usb disk number)
5. clean
6. create
partition primary
7. select
partition 1
8. active
9. format
quick fs=fat32
10. assign
exit
above commands are also use for creating bootable usb disk for windows 7,windows8 and server 2008 etc also just run above mentioned and copy setup file to usb disk
· The example above
assumes Disk 1 is the UFD.
·
On your technician computer, copy all of the content in the \ISO
directory onto your UFD. You can manually create the directory structure or use
the xcopy command to automatically build and to copy the appropriate
files from your technician computer to your UFD. For example,
xcopy C:\winpe_x86\iso\*.* /e F:\Thanks
Regards
Blog admin