rhonda j. layfield rjl, inc. [email protected] wcl306

64

Upload: abdiel-pardon

Post on 29-Mar-2015

230 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306
Page 2: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Install New Operating Systems: No Fuss, No Disks Needed with Windows Deployment Services (WDS)

Rhonda J. LayfieldRJL, [email protected]

Page 3: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Rhonda Layfield

Part of IT industry for twenty five+ yearsContribute articles to Windows IT Pro magazineSetup and Deployment MVPDesktop Deployment Product Specialist (DDPS)Co-Author of Windows Server 2003 R2 and Windows Server 2008 booksOffer two day hands on deployment class

Page 4: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

What We’ll Cover…

Intro to WDS (WinPE and Image files)Installing WDSConfiguring WDS

DHCP and WDSPre-staging clients

Automating the InstallationsMulticast TransmissionsCreating and Deploying an ImagePerformance and Troubleshooting Logs

Page 5: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Windows Setup Milestones

1980: Boot from floppy1990: Install Windows 3.0 from three floppies1992: Install Windows 3.11 from ten floppies1995: Windows 95 - First CD-based installation1997: Windows 98 CD or floppies2000: RIS PXE boot across the network2006: Windows Vista delivered on DVD (and spanned CD’s) 2007: WDS ships with Multicast support

Page 6: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Why Use WDS?

Reduces deployment cost - FREEPerforms network-based installationsDeploys Windows images to bare metal computersSupports mixed Windows environmentsUtilizes standard Windows technologies

Windows PE.wim files.vhd files

Page 7: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Windows Pre Installation Environmentaka…WinPE

Scaled down version of the Windows KernelBoots into and runs from RAM

X: drive (default driver letter)Reboots every seventy two hours

Command Line Interface OnlyCan be converted to a bootable .ISO and placed on:

CD, DVD, USB Flash Drive, external HDYou can create your own or use the boot.wim from DVD

Page 8: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

.Wim Side Trip

One of Microsoft’s image formatsMultiple images stored in a single .wim file

Single instancingNo redundant file storage

Service image offlineApply patches quick and easily

Page 9: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

VHD Image Formats

You can put one on your system, add a .wim to it… and tell bcdedit to boot that OSMounting a VHD in Win7 is called “attaching" Un-Mounting a .VHD is called “detaching”Diskpart is the basic tool of choice to work with .vhds

Page 10: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Back To WDS:Requirements

WDS server must be a member of an Active Directory domainDHCPDNSNTFS partition on which to store images

Page 11: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS on Server 2003

Installing WDS on a 2003 SP1 Server Install RISInstall patch from the WAIK: windows_deployment_services_update.exe

Installing WDS on a 2003 SP2 ServerControl Panel / Add/Remove Programs / Windows Components / WDS

Page 12: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS on Server 2008 (& 2008 R2)

Installing WDS on a 2008 serverServer ManagerAdd RolesSelect Windows Deployment Services from the list of rolesTwo checked boxes

Deployment ServerTransport ServerNeed both for a full WDS installation

Page 13: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Transport Server AloneDoes NOT need:

ADDNSDHCP

Create your own PXE Server ComponentNo UI

WDSUtil onlyProvides multicast only

Uses wdsmcast

Page 14: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Configuring WDS – Welcome

WDS snap-in

Expand WDS

Right-click your server “Configure Server”

Page 15: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Store Your Images

Page 16: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS and DHCP on The Same Server?

Page 17: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

In a Perfect WDS World

Bare-MetalBare-MetalDHCP/WDSDHCP/WDS

Discover IP

Offer IP/PXE Server

Request

Acknowledge

Page 18: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS and DHCP

Three ScenariosWDS and DHCP on the same subnet/ different servers

Client will find WDS by broadcastingWDS and DHCP on different subnets

Client find WDS through options 66 and 67 set in DHCPWDS & DHCP on same server

Client must find WDS through Option 60 in DHCP

Page 19: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS and DHCP Same Subnet

Bare-MetalBare-Metal

DHCPDHCP

WDSWDS

Discover IP/PXE Server

Discover IP/PXE Server

Offer IP

I’m WDS

Request

Acknowledge

Page 20: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS and DHCP Different Subnets

Bare-MetalBare-Metal

DHCPDHCP

WDSWDS

Discover IP/PXE Server Offer IP Option

66 Option 67

Acknowledge

Request

Page 21: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS and DHCP on The Same Machine

Bare-MetalBare-MetalWDS/DHCPWDS/DHCPDiscover IP

Offer IP Option 60 I’m also WDS

Request

Acknowledge

Page 22: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

WDS Server Responds to…

Page 23: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Configuration Completed

Page 24: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Known Clients: Pre-staged in ADUC

Page 25: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Pre-staging the GUID

Page 26: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Which WDS Server ?

Page 27: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Adding the Images

Within the WDS snap-inAdd Boot images

These are WinPEsAdd Install images

Image groups and single instancingDynamic Driver Provisioning (DDP)

Create driver groupsOnly the necessary drivers are downloaded to the client

Page 28: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Configuring WDSdemo

Page 29: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

From the Client

PXE boot screensMessage from AdministratorPending DevicesClient

Page 30: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

PXE boot

Page 31: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Unknown Clients

Page 32: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Message From Administrator

How do you set a message from the administrator?On the WDS server from a command prompt type:WDSUtil /set-server /AutoAddPolicy /message:"To contact your network administrator please dial 123-4567“/AutoAddPolicy is case sensitive

Page 33: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Pending Devices

Page 34: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Automate the PXE Boot Process

No-one has to press F12On the WDS server properties -> Boot tabFor x86 replace PxeBoot.com with Pxeboot.N12

Doesn’t exist until you add your first boot.wim If you encounter a PXEboot Loop

On the WDS server run the following:WDSUtil /Set-Server /Resetbootprogram:yes

Page 35: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Setting the “message from administrator”demo

Page 36: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Can’t Use PXE

Create a Discover ImageWDS snap-in -> open Boot ImagesR-click a boot image

W7 or 2008 R2 boot.wim from DVD /SourcesChoose to Create Discover Image…

Give it a name, description, path to store it and name of WDS server to connect to

Using the WAIK tools create a bootable .ISO that contains the new discover .wimBurn to CD/DVD, USB, external HD

Page 37: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Multicast TransmissionsServer1 sends packet 1 to client1Server1 sends packet 1 to client2Server1 sends packet 1 to client3

Server1 sends packet 1 to all clients

Server1 sends packet 1 to client1, client5 client9, client22

Page 38: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Windows Deployment Services Multicast Enhancements

Multiple Stream TransferMultiple streams of trafficOptimized rates based onclient connection

Client Auto RemovalSlower clients can be dropped to unicast or entirely (only in standard multicast)

Boot Image MulticastWindows PE boot images can use multicast (clients with EFI)

Fast

Medium

Slow

Page 39: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients

MulticastWDS Server

Multicast Transmission

First client joins “transmission”

Page 40: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients

WDS Server

Multicast Transmission

Waiting for other clients to join…

Multicast

Page 41: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients with multiple transfer speeds

WDS Server

Multicast Transmission

Additional clients join stream

Multicast

Fastest Medium Slowest Medium

Page 42: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients with multiple transfer speeds

WDS Server

Multicast Transmission

More clients to join

Multicast

FastestMedium Slowest Medium FastestMedium Medium

Page 43: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients with multiple transfer speeds

WDS Server

Multicast

Last clients complete…

Multicast

Medium MediumSlowest

Page 44: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Clients

WDS Server

Multicast

All clients complete. Transmission ends.

Multicast

Page 45: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Creating Multicast Transmissions

2 ways to start creating a multicast transmission from within the WDS snap-in

Right-click Multicast Transmissions and choose Create Multicast Transmission

ORDrill down to your Install Image and right-click the image then choose Create Multicast Transmission

THENName the Multicast TransmissionChoose the image

Page 46: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Automatic OR Scheduled Cast?

Page 47: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Creating a Multicast Transmissiondemo

Page 48: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Automate the Installation

Server 2003 & XPWinnt.sifSysprep.inf

Server 2008, Vista and later OSsWindows System Image Manager (WSIM)

.xml scripts

Page 49: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Unattend.xml Scripts

You will need 2 scriptsWinPE Phase

Language of installationKeyboard layoutCredentials for ImageWhich Image to installDisk Configuration (partitioning)Where to install the image

The rest of the installation (specialize and OOBE)Computer nameUser accountTime zone

Page 50: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Viewing the Scriptsdemo

Page 51: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Where to Put the Scripts

WinPE scriptStore script in RemoteInstall\WDSClientUnattend folderWDS snap-in -> R-click server -> Properties Client tab

Enable unattended installationBrowse to WinPE scriptSets the script for all computers of that architecture

Page 52: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Scripts for a Specific Machine

New computer must be pre-staged in ADUCOn WDS server cmd type:

WDSUtil /Set-Device /Device:computername /ID:GUID or MAC /WDSClientUnattend:path & name of unattend.xmlExample:WDSUtil /Set-Device /Device:Client1 /ID:{8FD14D56-A2B0-6F06-2A00-FD3979EC51A1} /WDSClientUnattend:C:\UF\Unattend.xml

Page 53: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

More Than One Script?

Unattend specificed from the cmdSetup /wds /unattend:x:\wdsclientunattend.xml

Unattend from Server PropertiesAutoUnattend.xml from root of removable media

Page 54: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

The Image Script

Properties of the Image file in WDSGeneral tabAllow image to install in unattended modeSelect FileBrowse to answer file

Can be stored anywhereCan be named anything you choose Will be renamed to ImageUnattend.xml

Page 55: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Creating an Image Using WDS

Create a Capture ImageWDS snap-in -> open Boot ImagesR-click one

W7 or 2008 R2 boot.wim from DVD /SourcesChoose to Create Capture Image

Give it a name, description and path to store itWhen the wizard completes add the newly created Capture Boot Image to your list of Boot Images

Page 56: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Capture Imagedemo

Page 57: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Performance of WDS

Administrator tools -> Performance MonitorGet the big picture

RAMProcessorNICs

Get the nitty grittyWDS multicast ( demoted clients, slowdown requests)WDS Server (# of requests, # processed, # active)WDS TFTP (active requests & transfer rate)

Page 58: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Logs to Check

The logs that contain useful troubleshooting information are found in the %Windows% folder.

Setupact.logSetuperr.log

Turn on additional loggingCalled tracing

Verbose loggingDeployment Services Diagnostics logs (event viewer)

Page 59: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

What we Covered

Intro to WDS (WinPE and Image files)Installing WDSConfiguring WDS

DHCP and WDSPre-staging clients

Automating the InstallationsMulticast TransmissionsCreating and deploying an imagePerformance and troubleshooting logs

Page 60: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Let Me Know if I Can Help…

[email protected]

Thank you!

Page 61: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

www.microsoft.com/teched

Sessions On-Demand & Community

http://microsoft.com/technet

Resources for IT Professionals

http://microsoft.com/msdn

Resources for Developers

www.microsoft.com/learningMicrosoft Certification and Training Resources

www.microsoft.com/learning

Microsoft Certification & Training Resources

Resources

Page 62: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Track Resources→Want to find out which Windows Client sessions are best suited to help you in your deployment lifecycle? →Want to talk face-to-face with folks from the Windows Product Team?

Meet us today at the

Springboard Series Lounge, or visit us at www.microsoft.com/springboard

Springboard SeriesThe Springboard Series empowers you to select the right resources, at the right technical

level, at the right point in your Windows® Client adoption and management process. Come see why Springboard Series is your destination for Windows 7.

Page 63: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

Complete an evaluation on CommNet and enter to win!

Page 64: Rhonda J. Layfield RJL, INC. Rhonda@DeploymentDR.com WCL306

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,

IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.