john alger james madison university [email protected] john alger james madison university...

32
AUTOMATED VISTA INSTALLATION John Alger James Madison University [email protected]

Upload: geoffrey-may

Post on 24-Dec-2015

235 views

Category:

Documents


2 download

TRANSCRIPT

AUTOMATED VISTA INSTALLATION

John AlgerJames Madison University

[email protected]

Background

Student population (18000+) 1 fulltime and 10 student staff Call Volume: 2036+ calls Recommended Standard:

Dell Business Laptop (Latitude series) Apple Laptop

Reality: Any make/model/OS version

Drop off Service via authorization

Environment

Restricted Gigabit network segment Space for 35 laptops 2 TB NAS in Raid 10 (effective 1 TB) Images, user files, drivers and

applications Primary DHCP and DNS PXE Client restricted

Install Scenarios

Hard drive failure (~20%) Under Dell warranty OS refresh / Office if discs

provided Data recovery of old drive

Malware Infection (~5%) Repair efforts unsuccessful Last resort (requires approval)

Needs

Minimal image library Hardware independent Fast Install Consistent

Deployment Drivers installed Applications installed Minimal expense

Solution

technet.microsoft.com appdeploy.com Microsoft WIM deployment USB boot (WinPE 2.0) Gigabit network NAS (TeraStation Pro II) Free Microsoft Imaging tools via

WAIK

Overview

Image Creation Image Maintenance

Image Installation Install Drivers

Install Applications

Validate Installation

S

Application Configuration

Gather Drivers

Imaging Resources

WAIK – Windows Automated Installation Kit WSIM – Windows System Image Manager Imagex – offline image manipulation WINPE 2.0 – move CD to USB boot

OEM DVD for each OS version install.wim from sources directory Used to create initial system build

Target System Sysprep – C:\Windows\system32\sysprep\ Future image maintenance

Image Creation Installation Maintenance

?

Create System Snapshot

Bios (Legacy ATA operation) Driverless as possible Install from OEM DVD source Fix settings applicable to all models Install any necessary applications OS and application patches Turn off OS updates and remove temp

files Capture partition snapshot

Image Creation Installation Maintenance

?

Create Answer File

Install WAIK Start Windows System Image Manager Copy install.wim from DVD sources

directory Select Windows Image … option Configure Components Save answer file Test … Test … Test

Image Creation Installation Maintenance

?

WSIM DemoImage Creation Installation Maintenance

?

Setup Phases

windowsPE Used with DVD install Product Key determines Vista

version specialize

Computer name Product Key

generalize Remove SID Other hardware specifics

Image Creation Installation Maintenance

?

Setup Phases (cont.)

auditSystem Set DriversPath Install drivers

auditUser Enables Administrator Install applications

oobeSystem Local Accounts and

passwords Reseal system

Image Creation Installation Maintenance

?

Sysprep Answer File

<settings pass="auditSystem"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DriverPaths> <PathAndCredentials wcm:action="add" wcm:keyValue="1"> <Path>c:\sysdeploy</Path> </PathAndCredentials> </DriverPaths> </component></settings>

Image Creation Installation Maintenance

?

Image Prep

Boot snapshot image Place the sysprep answer

file CMD (Run As

Administrator) Invoke sysprep

/audit /generalize /shutdown /unattend:sysprep.xml

Lots of testing

Image Creation Installation Maintenance

?

Image Capture

Boot WinPE Map to the NAS Imagex

/capture (Vista Ultimate image first )

/append (other Vista versions) C: vista32.wim “Ultimate 32bit”

Archive previous images Move vista32.wim into place on

NAS

Image Creation Installation Maintenance

?

Image File Layout

Three images Volume 1 – Vista Ultimate (largest)

Single File Instance Storage Maximum compression Offline file based maintenance Non-destructive installation

Vista Ultimate BusinessHome

Premium

vista32.wim image file

Image Creation Installation Maintenance

?

Application Deployment

AppAdmin.exe Saves Application Installation

settings Creates AppDeploy.ini

AppDeploy.exe Reads in selected application to

deploy Installation Order

Sysprep file entries (alternate) RunSynchronously RunAsynchronously

Image Creation Installation Maintenance

?

AppAdmin GUI

Configure application install settings

Silent installation switches Not included in base image Order of installation Global and model specific appdeploy.com

Image Creation Installation Maintenance

?

AppDeploy.ini

[Firefox]description=Mozilla Firefox 3.0.10executable=Firefox Setup 3.0.10.exeswitches=-mssource=c:\sysdeploy\app\firefoxinstallOrder=d10ainstallAlways=Yes

Image Creation Installation Maintenance

?

Drivers

NAS Structure \osinstall\vista32bit\drivers

\Dell \Latitude

D630

Model directory app – model specific applications audio , storage, security, network,

modem … drivers are in uncompressed form

Image Creation Installation Maintenance

?

VistaInstaller GUI

Configure user account Select OS version Provide product key Select applications Media Direct (future)

Image Creation Installation Maintenance

?

Vista Installer Process

Prepares internal drive Archives user files (if drive not

formatted) Removes previous Windows footprint Applies selected image Modifies the unattend.xml Moves apps and drivers into c:\sysdeploy Logs activity

Image Creation Installation Maintenance

?

Image Deployment

Boot target system from USB WinPE 2.0, execute VistaInstaller WMI Libraries (System information) Diskpart – internal disk configuration Imagex /apply vista32.wim 1 c: Copy apps and model specific drivers Reboot

Image Creation Installation Maintenance

?

Installation Phases

WindowsPE DVD install only cdinstall sysprep file

Specialize phase Product key Computer name Time zone

Audit phase Administrator active (no UAC) Driver path and driver installation AppDeploy.exe Application deployment (silent installs) OOBE initialized

Image Creation Installation Maintenance

?

OOBE Phase

Administrator disabled (default)

User account created User password set System ready for inspection Quality Control Drivers via app install

Image Creation Installation Maintenance

?

WMI Queries

Install PowerShell from Windows Update Download WMIExplorer.ps1 Run PowerShell Execute WMIExplorer.ps1 Example

Select * from Win32_DiskPartition Iterate through the result set

Image Creation Installation Maintenance

?

Licensing

Slmgr.vbs upk ipk <Product Key> ato

Product Keys (scope) Factory install (one to

many) DVD install (one to multiple) COA (one only)

Image Creation Installation Maintenance

?

Image Maintenance

Done as needed OS updates Application updates (part of

image) Process (each OS version):

Update System Snapshot Sysprep image Capture WIM Test … Test … Test … Replace previous vista32.wim

Image Creation Installation Maintenance

?

Image Maintenance

External Applications AppAdmin AppDeploy.ini Move apps to the NAS

New system models Drivers copied to the NAS AppAdmin (model specific)

Test some more

Image Creation Installation Maintenance

?

Image Maintenance

64bit architecture Separate image file Same Deployment

method WMI Query

Windows 7 Same processes WinPE 3.0 Unknown issues

Image Creation Installation Maintenance

?

Questions?

Resource Links: WAIK source technet.microsoft.com WMI Explorer

http://thepowershellguy.com WinPE 2.0

Part of WAIK or … Use Winbuilder - http://winbuilder.net

AutoIt v3 http://www.autoitscript.com/autoit3

Application Deployment http://appdeploy.com

EVAL: resnetsymposium.org/rspm/evaluation/