Upload
xavier-bowlan
View
228
Download
1
Tags:
Embed Size (px)
Citation preview
Windows 7 Test Prep
Ch 2 Configuring System ImagesPart 2
Based on this book
Lesson 1: Capturing System Images
• Last time: Creating an answer file– Saving it as unattend.xml on a UFD (USB Flash
Drive)
• Creating a Reference Image• Distributing an Image to Many Computers• Using the Deployment Image• Servicing and Management Tool• Sysprep
Creating a Reference Image
• VHD Image– Requires Win 7 Enterprise or Ultimate– Capture an image of your current Win 7 computer
and save the image to a VHD– Boot from the VHD
• Image on a network share– Any version of Win 7 is OK– The most common case, used to deploy Win 7 to
many computers
Building a Reference Installation
• Insert a Win 7 Installation DVD• Insert the UFD containing th answer file• Restart the computer, boot from DVD
Preparing the Reference Computer for the End User
• In an elevated command prompt:• c:\windows\system32\sysprep\sysprep.exe
/oobe /generalize /shutdown– Sysprep removes user-specific and computer-specific
settings, and log files– Generalize removes hardware-specific information
from the Windows installation• Including out-of-box drivers
– OOBE will display Windows Welcome on the next restart
To Keep Drivers
• To preserve out-of-box device drivers– Set the PersistAllDeviceInstalls setting of the
Microsoft-Windows-PnpSysprep feature to True in the answer file
Creating a Bootable Windows PE Medium
1. Create a local WinPE build directory with copype2. Copy ImageX to the Iso subdirectory of your
Windows PE build directory3. Optionally, create a Wimscript.ini file to exclude files
or folders from the image4. Save Wimscript.ini to the Iso subdirectory of your
Windows PE build directory5. Create an ISO file witn Oscdimg6. Burn the image to DVD or CD with 3rd party software
Cruel Missing Steps
• Copy & rename winpe.wim to ISO\boot.wim• Use DISM to mount the image for changes– Add boot files to the image
• Configure BCD store• Use DISM to commit changes• See
http://technet.microsoft.com/en-us/library/dd744537(v=WS.10).aspx
Using Copype
• In an elevated command prompt:• C:\Program Files\Windows AIK\Tools\
PETools\copype.cmd <architecture> <destination>– <architecture> can be x86, amd64, or ia64– <destination> is a path to the local directory
• Example:– copycpe.cmd x86 c:\winpe86
Using Oscdimg
• Usage: OSCDIMG [options] sourceroot targetfile• oscdimg -n -bc:\winpe_x86\etfsboot.com
c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso• -n: long file names• -b: specifies file that will be written to the boot
sector of the disk
Capturing the Installation onto a Network Share
1. Boot from your WinPE media2. Use ImageX to capture an image 3. Copy the image to a network share