Sunteți pe pagina 1din 11

1. Add the default Windows 2008 boot image to WDS. 2.

Create Capture Boot Image and add it to boot image. 3. Create a Windows XP reference computer (install the operating system, applications, and make any other changes). 4. Sysprep it. 5. PXE boot the reference computer into capture image on the boot screen and then capture the image. 6. Upload the captured image to WDS server. 7. Clients can PXE boot and select the Windows XP install image to install Windows XP now. For detailed information, please refer to the following article: Step-by-Step Guide for Windows Deployment Services in Windows Server 2003 http://technet.microsoft.com/en-us/library/cc766320.aspx This article is similar to the WDS deployment process in Windows Server 2008 and it includes how to deploy Windows XP through WDS.

Deploying Windows XP on a large number of workstations can become a tiresome chore. You can help speed the process along using Sysprep. Here's how it works.
There are many different methods an administrator can use to automate the installation of Windows XP. One of the most popular and efficient methods is referred to as disk duplication where a pre-configured operating system is cloned and copied onto another computer. This method is an ideal choice when you need to install Windows XP on a number of systems that all require an identical configuration. The System Preparation tool (Sysprep), included with Windows XP, can be used to clone a computer and automate the deployment of the operating system. In this article, I will outline how you can use Sysprep to perform disk duplication.

Introduction to Sysprep
One of the benefits of using disk duplication is that it makes installing an operating system such as Windows XP on multiple computers more efficient. It is a welcome alternative to manually installing the operating system on multiple computers and configuring identical settings. Instead, the operating system, any service packs, configuration settings and applications can be included in the image and copied to the target machines. The System Preparation Tool (Sysprep) included with Windows XP can be used to create the initial disk image. What Sysprep does is prepare the system running Windows XP to be duplicated. Once the image is created, you must then use a third party utility to deploy it. Using a utility like Sysprep offers several advantages. Although some time must be spent preparing the image, it will obviously speed up future installations as well as reduce the

amount of user interaction required. The main disadvantage is that the reference computer and the target computers must have compatible Hardware Abstraction Layers (HALs) and identical Advanced Configuration and Power Interface (ACPI). The size of the hard disk on the destination computer must also be the same size or larger than the reference computer. All plug and play devices are redetected after Sysprep has run. The general steps that must be completed when using disk duplication to deploy an operating system include: 1. 2. 3. 4. Install the operating system on the reference computer. Configure the reference computer as required. Verify that the reference computer is properly configured. Prepare the computer for duplication using Sysprep and create an optional Sysprep.inf answer file. 5. Duplicate the image.

Preparing the reference computer


The first step in using Sysprep to create a disk image is to setup up the reference computer. This entails installing the operating system, any service packs, software applications, and configuring settings that you want applied to the target computers. Once you've tested the image to and confident that it's configured the way you want it, you are ready to being the cloning process. At this point you are ready to run Sysprep. In order for the utility to function correctly, the Setupcl.exe file, the Sysprep.exe file, and the Sysprep.inf file must all be in the same folder. So your first step will be to create a Sysprep directory in the root folder of drive C on the reference computer. You can create the folder using Windows Explorer or the command prompt. With the second method, open the command prompt and change to the root folder of drive C. Type md Sysprep as shown in Figure A to create the new directory. Figure A

You can create the Sysprep directory in the root folder of drive C from the command prompt.

Your next step will be to copy the files required to run the utility from the Windows XP CD to the Sysprep directory you just created. Insert the Windows XP CD into the CD-ROM drive. Open the Deploy.cab file located in the Support\Tools directory and copy the Sysprep.exe file and the Setupcl.exe file into the Sysprep folder as shown in Figure B. Figure B

Copy the Sysprep.exe file and Setupcl.exe file into the Sysprep directory.

Running the Windows system preparation tools

After completing the steps outlined in the previous section, you are ready to launch the Sysprep utility to clone the reference computer. From the command prompt, change to the Sysprep directory and type in the following command:
Sysprep /optional parameter

Sysprep optional parameters include:


-quiet - Sysprep runs without displaying onscreen confirmation messages -reboot - Forces the computer to automatically restart after Sysprep is complete. -audit - Restarts the computer is Factory mode without having to generate new security IDs (SIDs). -factory - Restarts the computer in a network-enabled state without displaying the Windows Welcome or mini-Setup. Use the parameter to perform configuration and installation tasks. -nosidgen - The Sysprep.exe file is run without generating new SIDs. Use this parameter if you are not cloning the system -reseal - Prepares the destination computer after performing tasks in factory mode -forceshutdown - The computer is shutdown after the Sysprep utility is finished.

Once you launch the utility a warning message will appear. Click Ok to acknowledge the warning and the System Preparation Tool window appears as shown in Figure C allowing you to configure how the utility will run. The options available here can also be set using command line switches when Sysprep is run from the command prompt as outlined above. Figure C

The System Preparation Tool window allows you to configure how the utility will run.

Once Sysprep has successfully duplicated the reference computer and shutdown (remember the computer can be shutdown automatically by using the -reboot optional parameter), you can remove the hard disk and clone it using third party disk-imaging software. When you restart a computer from a cloned disk for the first time, two events will occur. First, the Setupcl.exe file will start and generate a new SID for the computer. Second, the Mini-Setup Wizard will start allowing you to customize the computer. You can also automate this event by creating and using a Sysprep.inf answer file which is discussed in the section below.

The Sysprep.inf answer file


The first time a computer reboots after being cloned by Sysprep, a Mini-Setup wizard starts. The Mini-Setup wizard prompts the user for information to customize the installation on the target computer. However, if you want to automate the Mini-Setup wizard you can use a Sysprep.inf file.

The Sysprep.inf file is similar to an answer file in that it contains configuration information that would normally be supplied by a user during the mini setup program. In order to use the sysprep.inf, it must be placed in the Sysprep folder or on a floppy disk. The first time the computer is restarted, it will automatically look for the sysprep.inf file.

Creating the answer file


Creating the Sysprep.inf answer file is not that difficult because a wizard will walk you through the entire process. The utility used to create the answer file is called Setup Manager. Conversely, if you are skilled in the area of answer files you can also create one using a text editor such as Notepad. Before you can use Setup Manager to create the answer file, it must first be installed on your computer. On the Windows XP CD, locate the Support\Tools directory. Open the Deploy.cab file and copy the entire contents to a folder on your computer. Once the files have been copied, you can follow the steps outlined below to create an answer file. 1. Open the folder on your computer that contains the contents of the deploy.cab file and double click Setupmgr.exe. The Windows Setup Manager Wizard will appear. Click Next. 2. Specify whether to create a new answer file or modify an existing one. If you want to modify one, you must enter the path to the file. Click Next. 3. From the Product to Install dialog box shown in Figure D, select Sysprep Install. Click Next.

Figure D

Select Sysprep Install to create a Sysprep.inf answer file.

4. Select the platform that you will be using the answer file to deploy. You can select from Windows XP Home Edition, Windows XP Professional, and Windows 2000 Server, Advanced Server, or Data Center. Click Next. 5. Select the level of automation you want to use and click Next. 6. The next dialog box allows you to customize General Settings, Network Settings, and Advanced Settings as shown in Figure E.

Figure E

The Windows Setup Manager allows you to customize various settings.

7. Once you have configured all the settings, click Finish. 8. Setup Manager creates the answer file and prompts you to choose a location to save the file. The file can be placed on a floppy disk or in the %systemdrive%\Sysprep directory.

9. Exit the Setup Manager application.


About this task The System Preparation Tool (Sysprep) utility is located on the Windows product CD in the /Support/Tools/Deploy.cab file. Extract this CAB file to get sysprep.exe, setupcl.exe, setupmgr.exe, deploy.chm, ref.chm, and other programs and help files. 1. Make sure the operating system and applications are installed and configured on the reference computer, in the way that they should exist in the final installation. 2. Log on to the computer as an administrator. 3. Extract Deploy.cab file (located in the Support\Tools folder on the Windows product CD) to the %SYSTEMDRIVE%\Sysprep folder, such as C:\Sysprep. 4. Create a Sysprep.inf file by issuing the setupmgr.exe command to start the Setup Manager dialog. The Sysprep.inf file is used to customize each computer and to specify the information for the prompts during setup. You can also create a Sysprep.inf file manually. The following page is displayed: Figure 1. Setup Manager program dialog

5. Click Next. The following page is displayed: Figure 2. Setup Manager: Creating a new answer file

6. Click Create new; then click Next. The following page is displayed: Figure 3. Setup Manager: Type of Setup

7. Click Sysprep setup; then click Next. The following page is displayed: Figure 4. Setup Manager: Windows product

8. Click the Windows product version, such as Windows Server 2003 Standard Edition. The following page is displayed: Figure 5. Setup Manager: License Agreement

9. Click Yes, fully automate the installation; then click Next. The following page is displayed: Figure 6. Setup Manager: Name and Organization

10. Enter information into the Name field and the Organization field; then click Next. The following page is displayed: Figure 7. Setup Manager: Display Settings

11. Select display settings; then click Next. 12. Select a time zone; then click Next. The following page is displayed: Figure 8. Setup Manager: Product Key

13. Enter the product key that matches the operating system that you installed; then click Next. 14. Click Next to accept the defaults for Licensing Mode. 15. Click Next to accept the defaults for Computer Name. The following page is displayed: Figure 9. Setup Manager: Administrator Password

16. Enter the administrator password in the Password field and again in the Confirm password field. Select the checkbox to Encrypt the Administrator password in the answer file; then click Next. 17. Click Next to accept the defaults for Networking Components. 18. Click Next to accept the defaults for Workgroup or Domain. 19. Click Next to accept the defaults for Telephony. 20. Click Next to accept the defaults for Regional Settings.

21. Click Next to accept the defaults for Languages. 22. Click Next to accept the defaults for Install Printers. 23. Click Next to accept the defaults for Run Once. 24. Click Next to accept the defaults for Additional Commands. 25. Click Next to accept the defaults for Identification String. 26. Click Next to accept the defaults for Run Once. The following page is displayed: Figure 10. Setup Manager: Path and file name

27. Accept the default path; then click OK to save the sysprep.inf file. The Setup Manager program creates the sysprep.inf file in the folder. 28. Open a command window and change directories to the C:\sysprep directory; then run the sysprep.exe command. sysprep -reseal -nosidgen Make sure that both the Sysprep.exe file and the Setupcl.exe file exist in the %SYSTEMDRIVE%\Sysprep folder on the local hard disk. To use the answer file that you created, the Sysprep.inf file must also be in the folder. 29. If the computer is ACPI-compliant, the computer shuts down by itself. If not, shut down the computer when a dialog box is displayed that states that it is safe to shut down the computer. Now the system is ready for capturing. 30. Build the capture task sequence and advertise the task sequence from the Configuration Manager server, as described in Capturing an operating system image for deployment.

31. Start the system. During the system boot, press F1 to enable a system boot from the network. After finishing the capture task, the system restarts. The local Sysprep folder containing Sysprep.exe and Sysprep.inf in%SYSTEMDRIVE% is deleted.

S-ar putea să vă placă și