120 likes | 254 Views
Windows 7 Test Prep. Ch 2 Configuring System Images Part 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
E N D
Windows 7 Test Prep Ch 2 Configuring System Images Part 2
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 • Create a local WinPE build directory with copype • Copy ImageX to the Iso subdirectory of your Windows PE build directory • Optionally, create a Wimscript.ini file to exclude files or folders from the image • Save Wimscript.inito the Iso subdirectory of your Windows PE build directory • Create an ISO file witnOscdimg • 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 • Boot from your WinPE media • Use ImageX to capture an image • Copy the image to a network share