Walkthrough Create A Custom Windows PE Image
Walkthrough Create A Custom Windows PE Image
Technologies
Technologies Documentation
Documentation
Resources
Resources Sign in
> Windows PE Walkthroughs
> Walkthrough: Create a Custom Windows P…
Note
A Windows PE RAM disk boots directly into memory and is assigned the drive letter X, which does not correspond to the media (for
example, a UFD or a CD-ROM) from which you booted. Ensure that you have sufficient memory to support the size of your
Windows PE image plus any additional memory requirements, for example, if you plan on running any customized applications that
need additional working memory.
Prerequisites
To complete this walkthrough, you need the following:
A technician computer that provides all the tools and the source files. For more information, see Building a Technician Computer.
1. On your technician computer, click Start, point to All Programs, point to Windows OPK or Windows AIK, and then click
Windows PE Tools Command Prompt.
The menu shortcut opens a Command Prompt window and automatically sets environment variables to point to all the
necessary tools. By default, all tools are installed at C:\Program Files\version\Tools, where version can be Windows OPK or
Windows AIK.
2. At the command prompt, run the Copype.cmd script. The script requires two arguments: hardware architecture and destination
location. For example,
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]
Walkthrough: Create a Custom Windows PE Image
where <architecture> can be x86, amd64, or ia64 and <destination> is a path to the local directory. For example,
The script creates the following directory structure and copies all the necessary files for that architecture. For example,
\winpe_x86
\winpe_x86\ISO
\winpe_x86\mount
At the command prompt, mount the base Windows PE image (Winpe.wim) to the \Mount directory by using ImageX. For
example,
1. Add a Windows feature to the base image by using the peimg /install command. For example,
where <pkg> denotes the package name. A list of available packages and their names can be obtained by using the /list
command. You can use wildcards to specify a package name. Any packages with matching names will be installed. For example,
-or-
where wildcards denote any package with HTA in the package name.
Windows PE 2.0 provides the following Windows features referred to as packages.
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]
Walkthrough: Create a Custom Windows PE Image
WinPE-FONTSupport-<region>- Additional font support for ja-jp, ko-kr, zh-cn, zh-hk, and zh-tw.
Packages
In the INS column, (+) denotes installed packages and (-) denotes not installed.
ImageX
A command-line tool for capturing and applying images during deployment scenarios. For example, at a command prompt,
A tool for servicing Windows image (.wim) files offline. You must copy the entire \Servicing folder and MSXML6 binaries. Offline
servicing requires ImageX. For example,
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]
Walkthrough: Create a Custom Windows PE Image
tools.
To load the tools into memory along with Windows PE, copy the source files into the mounted \Windows directory. For example,
c:\winpe_x86\mount\Windows
Important
Adding files to the \Windows directory will increase the size of your Windows PE RAM image. Ensure that your computer has
sufficient memory to boot Windows PE and to run various applications.
The /prep option cannot be reverted, and after the /prep option is run, the /install, /uninstall, /import, and /list options will not
function, while the /lang and /inf options will continue to function. The Peimg tool prompts you to confirm the command. To suppress
this prompt for scripting, add the /f option.
Next Step
You now have a customized Windows PE RAM disk image that you can place on bootable media, like a CD-ROM or a UFD.
1. On your technician computer, at a command prompt, create an .iso file by using Oscdimg. For example,
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]
Walkthrough: Create a Custom Windows PE Image
1. During a running Windows Vista operation system or a Windows PE session, insert your UFD device.
2. At a command prompt, use Diskpart to format the device as FAT32 spanning the entire device, setting the partition to active. For
example,
diskpart
select disk 1
clean
create partition primary size=<size of device>
select partition 1
active
format fs=fat32
assign
exit
where c is the letter of your technician computer hard disk and f is the letter of your UFD device.
You can further customize your Windows PE image by adding language packs, customized scripts, and drivers. For more information,
see Windows PE Customization How-To Topics.
See Also
Concepts
Building a Windows PE Image
Booting Windows PE
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]
Walkthrough: Create a Custom Windows PE Image
IIS.NET
Sitemap
Contact us
Privacy & cookies
Terms of use
Trademarks
About our ads
© Microsoft 2017
https://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx[19/10/2017 17:09:47]