Deploying Windows on a large number of workstations can become a huge and time consuming task. There are many different methods that administrator can use to automate the installation of large number of Windows workstations.
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 CD can be used to create the initial disk image. What Sysprep does is prepare the system running Windows XP to be duplicated.
Advantages / disadventages of SYSPREP
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.
Microsoft’s SYSPREP (System Preparation Tool) enables you to set up a PC so that on the next boot-up the PC will go through the Windows installation steps where you can enter a new Windows CD key for a new user, but where your Windows environment is one which you have yourself already fully configured.
Once you have "Syspreped" your PC, you can use disk imaging software to make an image copy of the hard disk so that you can use that image to fully recreate the environment you have just set up onto any new PC that you need to set up in the future. This document describes the steps you need to follow to achieve this and save yourself countless hours.
Preparing the reference PC (base image)
The reference PC is master PC from which you will make your image to duplicate to other PCs. To prepare the reference computer:
- Install the OS (only Windows 2000/2003/XP are supported). Note: the reference computer cannot be member in domain.
- Configure components and setting, such as drivers, display settings Windows update etc.
- Install all the programs that will be needed on a standard user PC, configure your network, install network printers, map network shares (unless this is done by server-side login scripts or group policies), install all Windows Updates, all add-on utilities such as Adobe Acrobat Reader, your antivirus software, etc... Configure your START menu, toolbars (Quick Launch, Word), Internet Explorer and other web browser defaults, etc...
Extract deploy.cab into C:\Sysprep
Find your Windows XP CD, then go to Support\Tools folder, find the file DEPLOY.CAB and extract its contents to the C:\Sysprep folder. If you do not have WIndows CD you can download DEPLOY.CAB from this page "
Download Windows XP SP2 and Windows 2003 SP1 Deploy Tools". Extract the DEPLOY.CAB to the C:\Sysprep folder.
Now go to the C:\Sysprep folder and double-click the SETUPMGR.EXE program to start the SYSPREP process.
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.
Now, 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. Select the level of automation you want to use.
The next dialog box allows you to customize General Settings, Network Settings, Advanced Settings, etc.
Once the Sysprep.inf answer file is created, you can open it using a text editor such as Notepad. The file may look something like the one shown below.
[Unattended]
OemSkipEula=Yes
InstallFilesPath=C:\sysprep\i386
TargetPath=\WINDOWS
[GuiUnattended]
AdminPassword="admin_password"
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=35
OemSkipWelcome=1
[UserData]
ProductKey=AAAAA-BBBBBB-AAAAA-BBBBB-AAAAA
FullName="XP Pro Desktop"
OrgName="Organisation Name"
ComputerName=win-st-111
[TapiLocation]
CountryCode=107
[RegionalSettings]
LanguageGroup=1
Language=00001009
[Identification]
JoinWorkgroup=WORKGROUP
[Networking]
InstallDefaultComponents=Yes
[Branding]
BrandIEUsingUnattended=Yes
[Proxy]
Proxy_Enable=0
Use_Same_Proxy=0
[GuiRunOnce]
Command0="label d: Data"
[sysprepcleanup]
After restart, boot your PC using bootable WinPE CD, after boot use ImageX to finally capture your drive. This is the format of ImageX command:
imagex /compress /capture c:\image_directory d:\imaging\data.wim "new_image_file"
Our example:
D:\Tools\Imagex.exe /compress fast /capture C: E:\image.wim "XP Pro Image" /verify
Our D:\ drive is CD/DVD drive, our C:\ drive is WIndows Operating System partition. We’ve chosen to use fast compression, but you can use other if you want. Your other options for compression are "maximum" and "none", but we will not recommend using "maximum" for partitions with OS. Also know that Vista images are much larger than XP with compression, so don’t be surprised when you look at the final size.
C: is the drive we want to take the image from, this could just as easily be D: or E: if we had multiple hard drives. E:\image.wim is the path and name of the file we want to save the image with. In our example E:\ is external SATA drive. For some reason, you also need to give your images a human readable name other than just the filename, in this case we’ve chosen the generic "XP Pro Image” as a title. The /verify flag does just that, making sure that no errors were encountered during the imaging process and that your final image file is ready to use.
When your image is finished, you’re ready to take out the CD and reboot. The computer you took the image from will act like it’s booting for the first time, going through a long boot process while it creates a new SID and installs drivers. You will not be asked for any setup information during this process. Once this process has finished, the computer is back just as it was prior to taking the image.
Optional mounting of an WIM image for modification
If you need that, know that WIM image can also be mounted as a new volume under Windows with a drive letter associated in order to add or remove some files to its content. This allows modification od files inside image.wim.
The /mount switch mounts a WIM file into a folder on the host PC's hard drive as a complete but read-only replica of the file system from the disk captured to the WIM file. The /mountrw switch mounts the file system in an editable mode.
To mount image.wim file with read only mode in folder c:\temp_dir:
imagex /mount d:\sources\image.wim 1 c:\temp_dir
To mount image.wim file with read/write mode in folder c:\temp_dirimagex /mountrw d:\sources\image.wim 1 c:\temp_dir
To unmount image.wim file , and save changes to it (if previosly mounted in read/write mode) :
imagex /unmount /commit c:\temp_dir
To unmount image.wim file without saving changes :
imagex /unmount c:\temp_dir
Thats it, in next section we will show you how to make Bootable CD/DVD disc from your WIM image file, which can be used to automatically deploy your custom Windows instalation to a large number of PCs. This could be very useful if you want to have Deployment CD/DVD for your specific PC configuration which can be used inside your organisation or enterprise, or if you need it to be delivered to your customers PCs.
Summary
Disk duplication is a great way to reduce the amount of time it takes to install an operating system on multiple computers. The System Preparation Tool included with Windows XP can be used to prepare a reference computer to be cloned. To further automate the installation of Windows XP you can use bootable CD/DVD
Original Source: http://www.helidon.net/blog/windows/how-to-sysprep-windows-to-create-deployment-wim-image