Windows 7 Test Prep Ch 2 Part 3. Based on this book.

38
Windows 7 Test Prep Ch 2 Part 3

Transcript of Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Page 1: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Windows 7 Test Prep

Ch 2 Part 3

Page 2: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Based on this book

Page 3: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Lesson 1: Capturing System Images

• Part 1: Creating an answer file– Saving it as unattend.xml on a UFD (USB Flash

Drive)

• Part 2: Creating a Reference Image• Distributing an Image to Many Computers• Using the Deployment Image• Servicing and Management Tool• Sysprep

Page 4: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Manual Deployment from a Network Share

• On destination computer, boot from WinPE disk• Use DISKPART to

create partitions• Copy image.wimto

local hard disk D:• Apply image with

ImageX• Use BCDboot to initialize the Boot Configuration

Data

Page 5: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

ImageX

• At an elevated command prompt– e:\imagex.exe /apply d:\image.wim 1 c:

Page 6: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

BCDboot

• At an elevated command prompt– d:\windows\system32\bcdboot d:\windows

Page 7: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Cross-Architecture Tools

• ImageX (x86) and Windows PE (x86) can be used to capture both 32-bit and 64-bit images

Page 8: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Windows Imaging Format

• A WIM file is file-based format that stores files and file metadata– Removes duplicates, storing a file only once even

if it is references multiple times in the file system tree

– Hardware-independent– Files are stored in a WIM database– WIM files must be deployed to pre-formatted

partitions (use DISKPART first)

Page 9: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Windows Imaging Format

• WIM file may contain multiple disk images– Saves size by removing duplicates

• SWM: Spanned WIM Image files– Split into parts

Page 10: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Mounting WIM Files

• Load WimFltr.sys driver• Mount WIM file to a drive letter using ImageX• Wimgapi.dll provides Application

Programming Interfaces for manipulating WIMs

• To make a WIM bootable, use ImageX with the /boot switch

Page 11: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Distributing an Image to Many Computers

• Two tools–Windows Deployment Services (WDS)• Targets boot from PXE, or from a WDS

Capture Image

–MDT 2010 (Microsoft Deployment Toolkit)• Very powerful new deployment tool

Page 12: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Lite Touch & Zero Touch

• Lite Touch Installation (LTI)– Requires a small amount of user intervention– Most new features in MDT are related to LTI

• Zero Touch Installation (ZTI)– No user intervention– Requires these items on the network:

• Microsoft System Center Configuration Manager (SCCM) 2007

• Operating System Deployment Feature Pack• SQL Server

Page 13: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

System Management Server (SMS) 2003

• MTD 2010 ZTI does not work with SMS 2003

Page 14: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

WDS Images

• WDS provides a PXE-booted version of Windows PE

• A WDS image is contained in A WIM FILE– It's booted over the network into a RAMDisk– Installation proceeds under Windows PE

• WDS integrates into Active Directory Domain Services, but the PXE server can run without ADDS

Page 15: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Types of WDS Images• Install– An OS to deploy, typically a WIM file

• Boot– Windows PE image you boot client to before install the

WIM

• Capture– Used to capture images– Has Windows PE and Windows Deployment Services

Image Capture Wizard

• Discover– Used for non-PXE computers– Enables target to finds WDS server and install an image

Page 16: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Using the Deployment Image Servicing and Management Tool (DISM)

• New in Windows 7• DISM can service a Windows image, or

prepare a Windows PE image

Page 17: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

DISM Can Do:

Page 18: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

DISM Options

Page 19: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Sysprep

• Sysprep prepares a Windows installation for imaging or delivery to a user

• GUI mode:• c:\windows\

system32\sysprep\sysprep.exe

Page 20: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Sysprep Command-line Options

Page 21: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Sysprep Options

• /audit Restarts the ciomputer in Audit mode to test an installation or add drivers

• /generalize Removes all unique system info• /oobe Restarts in Windows Welcome mode• /reboot, /shutdown, /quiet, /quit• /unattend: answerfile – Applies settings in the

answer file during unattended installation

Page 22: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Configuration Passes

• Link TestPrep Ch 2c

Page 23: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Sysprep Answer File

• Configures unattended setup options• The generalize, auditSystem, and auditUser

passes only occur when you run sysprep.• Sysprep answer file must be an XML file but

cannot be named Autounattend.xml

Page 24: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Making Plug-and-Play Drivers Persist During the Generalize Pass• Specify the PersistentAllDeviceInstalls setting

in the Microsoft-Windows-PnPSysprep feature • In Windows System Image Manager– See next slide

Page 25: Windows 7 Test Prep Ch 2 Part 3. Based on this book.
Page 26: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Reduced Functionality Mode

• There is no Reduced Functionality Mode in Windows 7• Textbook is wrong on page 82• See link TestPrep Ch 2d

Page 27: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Lesson 2: Managing Virtual Hard Disk Files

• Using Native VHDs in Windows 7 • Using the Windows Image to Virtual Hard Disk

Tool • Using the Offline Virtual Machine Servicing

Tool to Update a VHD • Deploying to an Online VHD • Using Windows Deployment Services

Page 28: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Using Native VHDs in Windows 7

• VHD files are used by Hyper-V, Virtual Server, and Virtual PC for virtual disks

• VHD files are also used by Microsoft Data Protection Manager, Windows Server Backup, client computer backup, and more programs.

• Win 7 Enterprise or Ultimate can boot directly from VHD

• DISKPART and Disk Management can be used to create VHD files

Page 29: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Action, Create VHD in Disk Management

Page 30: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Attaching VHD Files

• You can also "Attach" an existing VHD in Computer Management

• In either read-only or read-write mode

Page 31: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Creating VHD files with DISKPART

Page 32: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Booting from VHD

• Must have Win 7 Enterprise or Ultimate• Two ways to put Win 7 on a VHD– Use ImageX and a Win 7 Install DVD– Copy a WIM image to the VHD

• Use BCDEdit to add a boot entry for the VHD file

Page 33: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Using the Windows Image to Virtual Hard Disk Tool

• WIM2VHD creates VHD imaged from any Win 7 installation source or a custom WIM file

• The VHD will boot to the OOBE (Out-of-Box-Experience) unless you automate that configuration with an Unattend.xml file.

Page 34: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

WIM2VHD Example

Page 35: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Using the Offline Virtual Machine Servicing Tool to Update a VHD

• If you have a Win7 machine that only rarely boots from VHD, the VHD won't get Automatic Updates often

• The Offline Virtual Machine Servicing Tool lets you update a VHD

• The VHD will boot up just long enough to get the updates

Page 36: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Using the Offline Virtual Machine Servicing Tool to Update a VHD

• Requires Windows Server 2008 or 2003 SP2• Microsoft System Center Virtual Machine

manager (SCVMM) 2007 or SCVMM 2008• The SCVMM Administrator Console is built on

a Windows PoqwerShell command-line interface (see next slide)

Page 37: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

SCVMM Admin Console

Page 38: Windows 7 Test Prep Ch 2 Part 3. Based on this book.

Deploying to an Online VHD Using Windows Deployment Services

• WDS enables you to deploy Win 7 Enterprise or Ultimate remotely to bootable VHDs on client computers

• WDS runs on Windows Server 2008 or Windows Server 2008 R2

• WDS is an MMC Snap-in, and comes with the WDSUtil command-line tool you need to capture images