Dela via


Walkthrough: Deploy Windows by Using a Configuration Set

Applies To: Windows 7, Windows Server 2008 R2

Note

This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.

This walkthrough describes how to deploy Windows® by using a configuration set. A configuration set is a file and folder structure that contains the necessary files that control the preinstallation process and define the manufacture's' custom information. The benefit of this method is that all of the files required for installation are contained in one location. A configuration set can be located on a network share or any portable media.

Important

If you intend to transfer a Windows image to a different computer, you must run sysprep /generalize, even if the computer has the same hardware configuration. The sysprep/generalize command removes unique information from your Windows installation, which enables you to reuse that image on different computers.
The next time you boot the Windows image, the specialize configuration pass runs. During this configuration pass, many components have actions that must be processed when you boot a Windows image on a new computer.
Any method of moving a Windows image to a new computer, either through imaging, hard disk duplication, or other method, must be prepared with the sysprep /generalize command. Moving or copying a Windows image to a different computer without running sysprep /generalize is not supported.

Prerequisites

To complete this walkthrough, you need the following:

  • A configuration set. For more information, see Build a Configuration Set.

  • A Windows® 7 product DVD.

  • A removable media, such as a USB flash drive (UFD), if you intend to install without a network.

  • A bootable Windows PE media if you intend to install from a network. For more information, see Windows PE Walkthroughs.

Deploying a Configuration Set Without a Network

This method requires a removable media, such as a UFD, and a product DVD.

  1. Turn on the new computer.

  2. Insert both the removable media containing your configuration set and the Windows 7 product DVD into the new computer.

Note

When using a USB flash drive, insert the drive directly into the primary set of USB ports for the computer. For a desktop computer, this is typically in the back of the computer.

  1. Restart the computer by pressing CTRL+ALT+DEL.

Note

This example assumes that the hard drive is blank.

  1. Windows Setup (Setup.exe) begins automatically.

    By default, Windows Setup searches all removable media for an answer file called Autounattend.xml. Autounattend.xml must be located at the root of the removable media.

  2. After Setup completes, validate that all customizations were applied, and then reseal the computer by using the generalize option.

As an OEM, you are required to reseal the new installation by using the System Preparation (Sysprep) tool. Sysprep clears various user settings and resets the computer so that the next time the computer restarts, your customers can accept the Microsoft® Software License Terms and add user-specific information.

You can automatically run Sysprep after the installation by setting the Microsoft-Windows-Deployment | Reseal component in your Autounattend.xml file as follows:

ForceShutdownNow = true, Mode =OOBE

You can also run Sysprep manually from a running Windows operating system by typing the following command.

C:\windows\system32\sysprep\sysprep /oobe /shutdown

Warning

When you run the sysprep /generalize command, out-of-box device drivers are removed from the Windows image. If you add out-of-box device drivers during installation and you intend to capture the Windows image, to persist out-of-box device drivers, in the Microsoft-Windows-PnpSysprep component in the answer file, set PersistAllDeviceInstalls to True. When you do this, Sysprep does not remove the detected device drivers. For more information, see the Unattended Windows Setup Reference (Unattend.chm).

Deploying a Configuration Set from a Network

This method requires space on a network to store both the configuration set and product DVD source files. You will also need a bootable Windows PE media to start the new computer.

Step 1: Copy files to network share

  1. Create two folders on a network share to store the product DVD source files and your configuration set. For example,

    net use N: \\server\share
    md N:\WindowsDVD
    md ConfigurationSets
    
  2. Copy the content of the product DVD to the \WindowsDVD folder.

  3. Copy your configuration set to the \ConfigurationSets folder.

Note

On your technician computer, you can save your configuration set directly to a network share.

Step 2: Install from the network

  1. Boot the new computer with a bootable Windows PE media.

  2. At a command prompt in Windows PE, map a network drive to your network share. For example,

    net use N: \\server\share
    
  3. Run Windows Setup from the network and reference your answer file within your configuration set. For example,

    N:\WindowsDVD\setup /unattend:N:\ConfigurationSets\autounattend.xml
    
  4. After Setup completes, validate that all customizations were applied, and then reseal the computer by using the generalize option.

Next Step

You can further customize your answer file to include additional options, including customized actions to occur during or after Setup. For more information, see Configure Other Windows Options.

See Also

Concepts

Deploy Windows by Using Windows Setup