-
On Server1, click Start, All Programs, and Windows AIK;
right-click Deployment Tools Command Prompt and then select
Run As Administrator.
-
At the Windows PE Tools command prompt, type the
following:
copype amd64 C:\WinPE_amd64
Note
CREATING A WINDOWS PE CD FOR USE
ON AN IA64 OR X86 COMPUTER
The syntax for the preceding command applies only to a
system with an AMD64 compatible processor. If your computer
is running on an Itanium 64 processor, you should type the
following command instead: copype ia64 C:\WinPE_ia64. In
this case, you should also replace all instances of “amd64”
with “ia64” in the following steps. Note also that, in this
context, you are creating the Windows PE CD for use on a
computer that can host Windows Server 2008 R2, which must be
a 64-bit machine. However, if you need to create a Windows
PE CD for an x86 system, you can type the following command
instead: copype x86 C:\WinPE_x86.
The Copype.cmd script creates the following directory
structure:
\WinPE_amd64
\WinPE_amd64\ISO
\WinPE_amd64\Mount
The root WinPE_amd64 directory contains the base Windows
PE image, or .wim file, which is named winpe.wim. The ISO
subdirectory contains the eventual contents of the Windows PE
CD and includes only startup information by default. The Mount
directory is empty by default. It mounts the winpe.wim image
into the Windows file structure so that you can modify it by
adding or removing files, by adding or removing packages, or
by changing settings.
-
Mount the base WinPE.wim image in the Mount folder by
typing the following command at the Windows PE Tools command
prompt:
dism /Mount-Wim /WimFile:C:\WinPE_amd64\winpe.wim /Index:1 /MountDir:C:\WinPE_
amd64\mount
Wait for the image to be mounted. After it is mounted,
you can add packages to the mounted image.
-
Type the following command to add disk tools for Windows
Deployment Services:
dism /image:C:\WinPE_amd64\mount /Add-Package /PackagePath:"C:\Program FilesWindows AIK\Tools\PETools\amd64\WinPE_FPs\winpe-wds-tools.cab"
The package takes a few moments to be installed on the
mounted image.
-
Unmount the image and commit the changes by typing the
following command:
dism /Unmount-Wim /MountDir:C:\WinPE_amd64\mount\ /Commit
The process of saving the changes and unmounting the
image takes several moments to complete.
-
Copy the newly customized WIM file to the ISO\sources
folder by typing the following command:
copy C:\WinPE_amd64\winpe.wim C:\WinPE_amd64\ISO\sources\boot.wim
Now, you can add any additional tools you want to
include on the Windows PE CD.
-
Add the ImageX utility to the ISO folder by typing the
following command:
Copy "C:\Program Files\Windows AIK\Tools\amd64\imagex.exe" C:\WinPE_amd64ISO
-
In Notepad, create an empty file named Wimscript.ini and save it to the
C:\WinPE_amd64\ISO folder.
-
Enter the following text into Wimscript.ini and then
save the file again.
[ExclusionList]
ntfs.log
hiberfil.sys
pagefile.sys
"System Volume Information"
RECYCLER
Windows\CSC
[CompressionExclusionList]
*.mp3
*.zip
*.cab
\Windows\inf\*.pnf
The [ExclusionList] section in the Wimscript.ini file specifies which files
should not be captured when you are performing an image capture by using the
ImageX tool. The [CompressionExclusionList] section of Wimscript.ini specifies
which files or file types should not be compressed when you are compressing an
image by using the ImageX tool.
Now you can make the .iso file.
-
At the Windows PE Tools command prompt, type the
following line:
Oscdimg -n -bC:\WinPE_amd64\etfsboot.com C:\WinPE_amd64\ISO
C:\WinPE_amd64\WinPE_amd64.iso
The Oscdimg command makes an .iso file of the specified
ISO directory. The –b switch makes the eventual Windows PE CD bootable ble
to start by specifying the location of the boot sector file, etfsboot.com. There
is no space after the –b switch. (The C that follows
the switch is the drive letter in the path to etfsboot.com.) Finally, the –n
switch in Oscdimg enables long file names in the .iso
file.
Note
USE EFISYS.BIN FOR
IA64
If you are creating the Windows PE CD for use on an IA64
system, type the following command instead: Oscdimg
-n -bc:\WinPE_ia64\efisys.bin c:\WinPE_ia64\ISO
c:\WinPE_ia64\WinPE_ia64.iso
.
-
(Optional) Insert a blank CD-R into a local disc drive
and then burn the new .iso file to a CD by right-clicking the
WinPE_amd64.iso file and selecting Burn Disc Image. (If this
option does not appear in the shortcut menu, choose Open With
and then select Windows Disc Image Burner.)