I frequently need to create ‘base’ images for new computer models my organizations acquire. Until recently, the process was always the same:
- Install Windows XP
- Enter information, such as license key, at all prompts during the setup process
- Apply Windows XP SP2 (my volume license media was only SP1)
- Install Microsoft Update client
- Download all security and critical updates from Microsoft Update
The Internet connection at one site I work out of was so unbearably slow, I’d start the update process when I went home for the night, and hoped it would be complete by the time I arrived the next morning.
I finally decided I was going to create a slipstreamed, customized Windows XP SP2 CD so I could minimize this repetitive process as much as I could. My goal was to boot from a CD, walk away, and come back a while later and find the setup process completed. This is what’s known as a silent deployment, requiring no user interaction.
Before doing anything, I highly recommend take the time to read the Unattended Windows XP Guide from msfn.org. It was my holy grail during this entire process. I want to thank everyone who contributed to creating this detailed how-to guide.
The first step is to copy your Windows XP volume license CD to a working directory on your hard drive.
Next, you can use several different methods to slipstream updates into your working directory. Personally, I’ve had the best luck using the RyanVM Integrator with RyanVM’s Windows XP post-SP2 update pack, but you may choose to use to use Autopatcher to download the updates, and nLite to slipstream them into the working directory as well. I suggest you pick one method per CD, meaning don’t use both utilities to modify a distribution. Do one or the other, but not both. There are other options for integrating the hotfixes here.
The most challenging part of this project for me was creating the unattended answer file. This file is where you input the information that you are prompted for during an interactive Windows XP deployment, such as passwords and network configurations. If you go get the Windows XP SP2 deployment tools, you can use the setup manager to create a base unattend.txt file. Rename this file to winnt.sif, and copy it into the slipstreamed i386 directory . Alternate nLite instructions are here.
Here’s a copy of my winnt.sif
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
AutoConfirm = 1
nLite does a good job of tweaking settings for you. If you’d like to do it manually, skip to the bottom of this post where I’ll summarize further customization using the RunOnceEx method.
Once the CD is customized to your satifaction, use the cdimage utility (and it’s optional GUI) to create an .iso file of your newly slipstreamed CD. Make sure you grab the boot.img bootsector as well – this is what makes the CD bootable. Alternate nLite instructions are here.
Lastly, burn your .iso to CD using your favorite tool, such as Nero. I personally use ImgBurn.
I hope this has given you some idea of the many ways you can create an unattended, slipstreamed Windows XP CD. Click the links below for more information on the following subjects:
Here’s I use this batch file, along with two .reg files, to customize some of my Windows XP settings. This section is entirely optional. To quickly summarize the process:
- Create a $OEM$ directory in the root of your slipstreamed CD.
- Inside the $OEM$ directory, create a cmdlines.txt file. Inside that file, enter the following:
- Save and close the cmdlines.txt file
- Inside the $OEM$ directory, create a file named RunOnceEx.cmd.
- Paste the following into the RunOnceEx.cmd file, then save the file. This will import the two .reg files listed below into the registry with our customizations.
rem cmdow used to hide window from end user
rem see http://unattended.msfn.org/unattended.xp/view/web/31/ for more info
rem set environment variable
rem title of window
REG ADD %KEY% /V TITLE /D “Making changes to the default setup” /f
REG ADD %KEY%50 /VE /D “Importing HKLM Registry Tweaks” /f
REG ADD %KEY%50 /V 1 /D “REGEDIT /S hklm.reg” /f
REG ADD %KEY%60 /VE /D “Importing HKCU Registry Tweaks” /f
REG ADD %KEY%60 /V 1 /D “REGEDIT /S hkcu.reg” /f
- Next, create a file in the $OEM$ directory called hkcu.reg. Paste the following text into hkcu.reg, then save the file. This file will contain the HKEY_CURRENT_USER registry keys that RunOnceEx.Cmd will import
Windows Registry Editor Version 5.00
;Disable the Desktop Cleanup Wizard
;Disable Recent Documents Menu
;Remove “Shortcut to” on shortcuts
;Alphabetically sort start menu
; This will disable all of the following:
; Balloon Tips
; Folder Contents Info Tips
; Explorer Pop-Ups
; Show Info Tips
; Start Menu Tips
; Notification Area Tips
; show file extensions in explorer
;Classic search, full path in title bar and address bar.
“Use Search Asst”=”no”
;Force Classic Control Panel
- Lastly, create a file in the $OEM$ directory called hklm.reg. Paste the following text into hklm.reg, then save the file. This file will contain the HKEY_LOCAL_MACHINE registry keys that RunOnceEx.Cmd will import
Windows Registry Editor Version 5.00
; auto logon as administrator during first boot
; going to temporarily disable autoadminlogon and try via guiunattended in winnt.sif
; autoadminlogon=1 is enabled =0 is disabled
; “AutoAdminLogonCount is number of times to autologon
;Use this to force the Classic style of the Control Panel
;Disables Windows Tour bubble popup
;Remove Shared Documents from My Computer
;Disable Welcome Screen and uses Classic Logon