Documente Academic
Documente Profesional
Documente Cultură
Deskto
p
Deployment Assistance Program
3. Deploying Windows XP
Thomas Lee
Chief Technologist QA plc
thomas.lee@qa.com
Deployment Assistance Program
Agenda
Windows XP SP2 Setup Improvements
Two types of Automated Deployment
Scripted Install
Image
Setup Agenda
Unattended setup
WinPE new
Imaging
RIS
Setup Tools
Automated Installations
Unattended setup
Introduced in NT4 workstation
Scripted automated Windows Setup
Still supported, not recommend for production deployment
Imaging
Uses SysPrep and Microsoft (WIM) or 3 rd Party Disk Imaging technology
Copies Master build to multiple PCs
Unattended Setup
Most flexible deployment option
Also slowest
Starts and runs Windows XP Setup on each computer
individually
What you need:
Winnt.exe, Winnt32.exe or CD (BIOS must support bootable CD)
A distribution share with Setup files or Windows XP CD
An answer file (text file) or winnt.sif if running unattended from CD
Unattended Installation
Input of information based
on boot menu, or missing
points from answer file.
Unattend.txt
Manual
Setup
First boot experience may
require some information
input.
Win PE
Overview
Features
Limitations
Scenarios
Features for Windows PE
Discussion
Windows PE Overview
An NTFS-capable boot disk with
TCP/IP networking
Mass-storage controller support
VESA mode video support
Windows PE Overview
Release history
First release was concurrent with Windows XP in 2001
Windows XP Service Pack 1:
Standalone DFS root connectivity
New (easier) boot from HDD ability
Features
Works with all systems that Windows XP and
Windows Server 2003 support
Can be built from Windows XP or Windows
Server 2003
Device support:
Networking*
Mass-storage*
VESA video support (single driver)
*Includes all built in drivers for this class from the version of Windows it was
built from. New drivers of this class can be easily added.
Features
VESA support specified by display controller hardware
determines resultant color depth and resolution
Can connect to standalone DFS roots and other SMB
shares
Ability to build-out storage, partition, do native FAT or
NTFS disk formatting, 32-bit disk imaging, I/O
Features
Boot support
CD
DVD (ISO only)
Hard disk
PXE (RIS only for WinPE 2004)
Non-Features
Windows Explorer shell
Audio support
DirectX
Visual Studio .NET applications
ADSI connectivity
Building WinPE
mkimg.cmd
Creates directory structure for CD
Demo
Using Setup Manager to build answer
files
WinPE and Diskpart.exe
Scenario - Scripted
Scenario: Deploying new systems, using scripted installation
Windows PE launched via RIS
Scenario - Scripted
Task examples: DISKPART
Clean
SEL DIS 0
CLEAN
Partition Creation
SEL DIS 0
CRE PAR PRI
ACTIVE
ASSIGN LETTER=C
EXIT
Scenario - Scripted
Task examples:
Format /Q /Y /FS:NTFS
Winnt32 syntax
Winnt32 /syspart:C: /tempdrive:C: /makelocalsource /dudisable
/unattend:unattend.txt
1.
2.
3.
4.
5.
6.
7.
Building An OS Image
Clean install OS
Ensure same HAL type (ACPI, non-ACPI)
Customize installation
Install applications
Create image
3rd party imaging tools
Boot to Windows PE and xcopy to server
Maintain image
Edit Sysprep.inf on image
Add files, drivers
DRVINST.CMD
Source Options
[/inf] path to specific driver
[/oscd] path to OS CD
Filter Options
[/onlyid] only install with matching PNP IDs
[/ignoreid] - do not install these PNP IDs
[/onlyclass] only install this class of driver
[/ignoreclass] ignore these classes of driver
Action Options
[/inject] specifies path to WinPE image (c:\winpe)
[/preview] list drivers that would be installed
WMI Support
Add WMI base support to provide access to
underlying hardware within Windows PE
Support for over 40+ providers and 1500+
classes.
Leverage the ability to load a native driver for
hardware validation and query
RAMDisk Boot
Ability to boot, load and run Windows PE within a
RAMDisk on a PC via network (any PXE server),
hard disk, or CD
Provides ability to run tests and diagnostics
remotely from the server or on local media
Allows for CD swapping for deployment/recovery
media
Windows XP SP2
Run XPSP2.EXE /S:d:\winxp
(see support\tools\spdeploy.htm)
(see support\tools\deploy.cab for GREAT info)
Sysprep =
System preparation tool
Prepares a reference system duplication
SMS OSD
3rd party imaging tools
XCopy
Sysprep 2.0
Enhancements
Support for longer OEMPnPPath strings
Increased to 4096 characters
Administrator profile copied to Default User
Simplifies Default User configuration
Factory switch
Allows for updated or out of box drivers to be picked up by
image at install time when PnP occurs
Winbom.ini Allows gathering of files (e.g., drivers, apps) from
network or custom scripting/application installs
-PnP switch not recommended
Sysprep
How it works
Reference
Computer
File
Server
Destination
Computer
Sysprep
Components
Sysprep.exe
Main tool
Setupcl.exe
used to regenerate security IDs
Factory.exe
When sysprep is run with the factory option
Sysprep.inf
Answer file used by Sysprep
RIS
How it works
Client
DHCP Server
1
2
3
5
4
RIS Server
Active Directory DC
RIS
Windows 2003 Enhancements
RIS Installation
Ristndrd.sif
RIS
RIS
Setup
RiPrep
RiPrep.sif
Mini Setup or
Windows Welcome
RIS Tips
Must have Windows 2000 SP2 on server
Must have new RISETUP.EXE
See Q287546
2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.