6 out of 7 rated this helpful - Rate this topic

Sysprep Overview

Published: February 29, 2012

Updated: May 31, 2012

Applies To: Windows 8, Windows Server 2012

The System Preparation (Sysprep) tool is used to change Windows® images from a generalized state to a specialized state, and then back to a generalized state. A generalized image can be deployed on any computer. A specialized image is targeted to a specific computer. You must reseal, or generalize, a Windows image before you capture and deploy the image. For example, when you use the Sysprep tool to generalize an image, Sysprep removes all system-specific information and resets the computer. The next time that the computer restarts, your customers can add user-specific information through the Out-Of-Box Experience (OOBE) and accept the Microsoft® Software License Terms. You can run Sysprep as either a command-line tool or a graphical user interface (GUI) tool.

If you intend to create an image of an installation for deployment to a different computer, you must run the Sysprep command together with the /generalize option, even if the other computer has the same hardware configuration. The Sysprep /generalize command removes unique information from your Windows installation so that you can safely reuse that image on a different computer. For more information, see How to Capture an Image for Deployment (Generalize).

In this topic:

The Sysprep tool is typically used in the following scenarios:

In this scenario, you create a single Windows reference image by installing Windows, customizing the image, and adding additional drivers and applications. You then capture the reference image and install it on computers that use the same hardware configuration. Sysprep makes no additional modifications to this image.

This scenario includes the following steps:

  1. Install Windows on a reference computer.

  2. After the installation is complete, boot the computer into Windows PE.

  3. Customize the image by installing boot-critical drivers, optional components, and language packs.

  4. Install any additional device drivers or applications.

  5. After updating the Windows reference installation, run the Sysprep /oobe /generalize /shutdown command. The /generalize option instructs Sysprep to remove system-specific data from the Windows installation, such as event logs and unique security IDs (SIDs). After Sysprep removes unique system information, the computer shuts down.

    noteNote
    Include the /oobe option in the Sysprep command, if you do not plan to use the reference image as the basis for a model-specific reference image. The /oobe option instructs the Windows installation to run OOBE the next time that the computer boots.

  6. After the computer shuts down, reboot Windows PE.

  7. Capture the Windows installation by using the Dism /capture-image command.

    You now have a reference image that you can use to install Windows on computers that have the same hardware configuration, or use as the basis for a model-specific reference image.

In this scenario, you start with a single reference image. After you install the reference image on a model-specific reference computer, you make additional updates that are unique to the computer that you are using. These could be customer-requested applications or other updates. By booting to audit mode, you can install additional devices and applications that are specific to the computer model that will be shipped. You can repeat this process and create a new model-specific reference image for each additional line of computers that you are shipping.

This scenario includes the following steps:

  1. Install the reference image on a computer representative of the model that is to be shipped to the customer.

  2. After installation is complete, run the Sysprep /audit /generalize /shutdown command to configure Windows to boot the computer to audit mode. You can then capture the Windows image by booting to another partition or by using Windows PE.

    This image becomes your model-specific reference image to install on computer models that share the same configuration.

  3. Install the model-specific reference image on a new computer. The Windows image is applied to the computer, and Windows boots to audit mode.

  4. (Optional) Install additional applications and other updates based on a customer's order. You can also test the computer to verify that all components are working correctly.

  5. After you update the Windows installation, run the Sysprep /oobe /shutdown command.

    noteNote
    If you install Windows images by using the Sysprep /generalize /oobe command, the user experience will not be ideal. On the next reboot after you run the Sysprep /generalize /oobe command, Windows runs the specialize configuration pass, Plug and Play, and other Setup tasks before Windows starts OOBE. This process can take additional time and can delay a customer's first logon.

  6. Package the computer and deliver it to the customer.

    The next time that the computer starts, OOBE runs.

Audit mode enables you to quickly customize a Windows installation. In audit mode, you can install applications, add device drivers, run scripts, and test the validity of a Windows installation. Audit mode does not require that you apply settings in OOBE. Typically, Windows starts OOBE immediately after installation. However, by booting to audit mode, you can bypass OOBE and boot the computer immediately to the desktop. This enables you to start your customization process as quickly as possible.

Audit mode enables you to verify that a computer is functional before you deliver the computer to a customer. You can verify that the end user's first boot experience will run as expected and that any customizations and information about your company's support options is present. After you configure the Windows installation, you can prepare that computer for delivery to a customer by running the Sysprep /oobe command. The /oobe option instructs Windows to run OOBE the next time that the computer boots. Windows processes any settings in the oobeSystem configuration pass in an answer file immediately before OOBE starts.

For more information about audit mode, see the following topics:

Sysprep provides the following benefits:

  • Removes system-specific data from Windows. Sysprep can remove all system-specific information from an installed Windows image. This includes the computer security identifier (SID). You can then capture the Windows installation and install that image throughout an organization.

  • Configures Windows to boot to audit mode. Audit mode is a built-in administrator account that enables you to install third-party applications and device drivers, and to test the integrity of the Windows image.

  • Configures Windows to boot to OOBE. Sysprep configures a Windows installation to boot to OOBE the next time that the computer starts. Typically, you configure a system to boot to OOBE immediately before you deliver the computer to a customer.

Sysprep has the following dependencies:

  • You must run Windows Setup before you use Sysprep.

  • You need an imaging tool to capture an image of the installation. The Deployment Image Servicing and Management (DISM) image-capturing tool, third-party disk-imaging software, or disk-duplicating hardware devices are required for image-based setup. These products create binary images of a computer's hard disk. These products either duplicate the image to another hard disk or store the image in a file on a separate disk.

noteNote
When you copy Windows images between computers, the reference and destination computers may not have to have compatible hardware abstraction layers (HALs). The /detecthal option in the Boot Configuration Data (BCD) enables a system that has already run Sysprep to install the correct HAL.

The following scenarios are not supported:

  • Moving or copying a Windows image to a different computer without running the Sysprep /generalize command is not supported. You must prepare any method of moving a Windows image to a new computer by using the /generalize option together with the Sysprep command. These methods include imaging, hard disk duplication, and all other methods.

  • Using a different version of the Sysprep tool to configure an image is not supported. You must use only the version of the Sysprep tool that is installed with the Windows image that you intend to configure. Sysprep is installed with every version of Windows. You must always run Sysprep from the %WINDIR%\system32\sysprep directory.

  • Using the Sysprep tool on upgrade installation types, or to reconfigure an existing installation of Windows that has already been deployed is not supported. Sysprep must be used only to configure new installations of Windows. You can run Sysprep an unlimited number of times to build and configure your installation of Windows.

  • Automating Sysprep by using a Microsoft-Windows-Deployment | RunSynchronous command in an auditUser configuration pass is not supported. However, you can use the Microsoft-Windows-Deployment | generalize setting to automatically prepare the computer for imaging after installation.

  • The Sysprep VM mode is new for Windows 8. Running VM mode outside a virtual machine (VM) is unsupported. You cannot use VM mode to prepare a VHD for deployment to any computer.

Sysprep has the following limitations:

  • The computer security identifier (SID) is only replaced on the operating system volume when you execute Sysprep. When Sysprep generalizes an image, Sysprep only generalizes the general partition. Therefore, if a single computer has multiple operating systems, you must run Sysprep on each image individually.

    If you apply multiple partitions, you can use the BCDBoot tool to copy boot configuration data to the system partition. For more information, see BCDboot Command-Line Options.

  • In some cases, customized applications that you install before you recapture the Windows image may require a consistent drive letter. Some applications store paths that include the system's drive letter. Uninstallation, servicing, and repair scenarios may not function correctly if the system's drive letter does not match the drive letter that the application specifies.

  • The Plug and Play devices on the reference and destination computers do not have to be from the same manufacturer. These devices include modems, sound cards, network adapters, and video cards. However, the installation must include the drivers for these devices.

  • Not all server roles support Sysprep. If you run the Sysprep /generalize command against a Windows Server® 2012 installation that has specific server roles configured, those server roles may not continue to function after the imaging and deployment process. For more information, see Sysprep Support for Server Roles.

  • If you run Sysprep on an NTFS file system partition that contains encrypted files or folders, the data in those folders becomes completely unreadable and unrecoverable.

  • The Sysprep tool runs only if the computer is a member of a workgroup, not a domain. If the computer is joined to a domain, Sysprep removes the computer from the domain.

  • If a computer is joined to a domain, and the Group Policy of that domain assigns a strong account password policy to the computer, all user accounts will require strong passwords. Running Sysprep or OOBE does not remove the strong password policy.

    WarningWarning
    If you do not assign a strong password to a user account before you run Sysprep or OOBE, you may not be able to log on to the computer. We recommend that you always use strong passwords for your user accounts.

See Also

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.