DESKTOP

Automating Windows 7 Installation : Preparing a System with Sysprep

10/27/2013 7:44:07 PM

Before you can capture an image using any of Microsoft's tools, you must first prepare it by running the System Preparation Tool (Sysprep). The Sysprep tool is located in C:\Windows\ system32\sysprep.

You cannot run Sysprep on a computer that has been upgraded from a previous operating system. You can only run it on clean installations that have been installed by choosing Custom during the installation process. If you try to run Sysprep on an upgraded system, it will refuse to run.

You launch Sysprep from the command line:

c:\windows\system32\sysprep\sysprep

You can also browse to the C:\Windows\system32\sysprep folder with Windows Explorer and double-click the Sysprep file. Figure 1 shows the Sysprep tool GUI with the typical selections used to prepare a system for imaging.

Figure 1. Sysprep tool

The Sysprep GUI includes two primary sections: System Cleanup Action and Shutdown Options. The available options in these sections are as follows:


Enter System Out-of-Box Experience (OOBE)

This option causes the system to mimic the first boot screens you'll see when performing a normal installation. It starts by running the Windows Welcome program and initializes settings on the computer. You must select this option to prepare a computer for imaging.


Enter System Audit Mode

Original equipment manufacturers (OEMs) use System Audit mode to bypass the Windows Welcome program and install additional programs and applications. Once the programs are installed, you run Sysprep again, selecting the OOBE choice. If you do not run Sysprep again, it will never enter the Windows Welcome phase but will instead continue to boot into System Audit mode.


Generalize

The Generalize check box causes Sysprep to remove system-specific information from the computer. You must check this option to prepare a computer for imaging.


Quit

This option quits Sysprep but doesn't shut down the computer.


Reboot

This option reboots the system. It is useful with System Audit mode, but not when using the OOBE choice. If the Windows Welcome program starts before you've captured the image, you'll have to run Sysprep again.


Shutdown

This option shuts down the computer and is the most common choice when running Sysprep to prepare the system for imaging. Once the system is shut down, you can use any available technique to capture the image, including using ImageX (described later in this chapter), or Windows Deployment Services (described in upcoming chapters).

You can also run Sysprep from an elevated command prompt (a command prompt run with administrative permissions). The following command mimics choosing Enter System Out-of-Box Experience (OOBE), Generalize, and Shutdown from the GUI:

C:\windows\system32\sysprep\sysprep /oobe /generalize /shutdown
Other  
  •  Automating Windows 7 Installation : Creating Bootable WinPE Media
  •  Automating Windows 7 Installation : Creating Your First Image, Using the Windows Automated Installation Kit
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 2) - Creating Operating System Images
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 1) - Creating a Bootable VHD Image
  •  Windows 8 : Scheduling Maintenance Tasks - Viewing and Managing Tasks on Local and Remote Systems
  •  Windows 8 : Detecting and Resolving Windows 8 Errors - Using the Event Logs for Error Tracking and Diagnosis, Viewing and Managing the Event Logs
  •  Windows 8 : Using Remote Assistance to Resolve Problems
  •  Windows 8 : Managing Automatic Updates
  •  Windows 8 : Managing Installed and Running Programs (part 3) - Configuring AutoPlay Options, Adding and Removing Windows Features
  •  Windows 8 : Managing Installed and Running Programs (part 2) - Managing the Command Path, Managing File Extensions and File Associations
  •  
    Top 10
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    3 Tips for Maintaining Your Cell Phone Battery (part 1) - Charge Smart
    OPEL MERIVA : Making a grand entrance
    FORD MONDEO 2.0 ECOBOOST : Modern Mondeo
    BMW 650i COUPE : Sexy retooling of BMW's 6-series
    BMW 120d; M135i - Finely tuned
    PHP Tutorials : Storing Images in MySQL with PHP (part 2) - Creating the HTML, Inserting the Image into MySQL
    PHP Tutorials : Storing Images in MySQL with PHP (part 1) - Why store binary files in MySQL using PHP?
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    VIDEO TUTORIAL
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS