Objectives
- Use the WAIK to create a Windows PE bootable CDRom image
- Configure the Boot Configuration Database to boot into Windows PE from a WIM file stored on the local hard disk
- Modify Windows PE to include startup actions and scripts
- Create a Windows PE image that includes the Recovery Environment
- Capture Technician Computer
- Deploy Image from network location
Scenario
Exercise 1-Create a Bootable Windows PE CD-ROM Which Contains Deployment Tools
Need Windows AIK installed on tect computer
Start > Windows PE Tools Command Prompt > Run as Administrator
Create Wim PE directort form AIK
Copype x86 c:\WinPE
Watch tools get copied from AIK
Success
Updating path to include peimg, cdimage, imagex
C:\Program Files\Windows AIK\Tools\PETools\
C:\Program Files\Windows AIK\Tools\PETools\..\AMD64
This command will allow you to modify the contents ofWindows PE
C:\WinPE>ImageX /mountrw winpe.wim 1 mount
ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Mounting (RW): [c:\WinPE1\winpe.wim, 1] ->
[c:\WinPE1\mount]
Successfully mounted image (RW).
This command will display packages that are available for installation.
C:\WinPE>Peimg /list mount
Results
Preinstallation Environment Image Setup Tool for Windows
Copyright (C) Microsoft Corporation. All rights reserved.
Listed 15 package(s).
PEIMG completed the operation successfully.
- Add desiresd packages
Peimg /install=*scripting* mount
- See added packages
Peimg /list mount
This command copies the deployment tools into the image
xcopy "c:\Program Files\Windows AIK\Tools\x86\*.*" mount\ /s
This command will optimize the Windows PE image for performance and size
Peimg /prep mount
This command saves the changes you have made to the WIM file.
ImageX /unmount /commit mount
This command places the WIM file in the correct place for the ISO creation tool.
Copy /y winpe.wim c:\WinPE\ISO\Sources\boot.wim
This command uses a provided boot sector and template directory to create a bootable ISO image which will boot the Windows PE WIM file.
Oscdimg –n –betfsboot.com iso winpe_custom_x86.iso
Start WinPE disk in Technician Computer
X:\windows\system32>
X:\windows\system32>cd X:\
X:\ imagex /compress fast /check /scroll /capture c: c:\<image-name.wim> "your comment"
About compression
During the compression process, you can select one of the following compression types for your image:
- maximum
Provides the best compression. However, it also takes the most time to capture the image.
- fast
Provides faster image capture. However, it provides less compression than that provided by maximum. This is the default compression type, used if you leave this option blank or if you use the /capture option without the /compress option.
- none
Captures the image without compression.
Because the /compress option specifies the type of compression for your entire .wim file, this option is valid only on the initial capture and cannot be changed. Additionally, if you use the /export option, the source and destination .wim files must have the same compression type.
after the capture you can save the image to a network share.
net use z: \\network_share then copy c:\myimage.wim y:\\network_share\<image folder>
after copying the captured image you can now then apply it to a new computer:
This step requires booting the new computer with Windows PE and applying the image with ImageX.
- Boot the new computer with your Windows PE media.
- In Windows PE, format the hard drive using DiskPart.
- At a command prompt in Windows PE, map the network drive to your network share. For example,
net use y: \\network_share\images |
- Apply the image from the network share by using ImageX. For example,
imagex /apply y:\\network_share\images\myimage.wim 1 c: |