Prepare a System for Cloning

Windows XP Procedure
Download the sysprep tools
http://support.microsoft.com/default.aspx?scid=kb;en-us;302577

Windows 2000 Procedure

Sysprep removes old hardware drivers from system in preparation for moving
to new system or cloning
Sysprep mini - basic GUI setup
Download Windows 2000 tools from
http://www.microsoft.com/windows2000/downloads/tools/sysprep/

Q249690 - need to update [SysprepMassStorage] section of sysprep for new
IDE/SCSI drivers
Put sysprep.exe, setupcl.exe, and sysprep.inf on hard disk under
c:\winnt\sysprep
To do IDE to SCSI migration, make sure there is a multi() statement in
boot.ini instead of scsi()
Run tools\pnpids.exe against the folder or floppy with the driver files to
get the PnP ID's, which go in the [SysprepMassStorage] section of
sysprep.inf

Format for [SysprepMassStorage] :
[SysprepMassStorage]
<pnpid>="<path to device inf>","<disk directory>",<disk
description>","<disk tag>"

path to device inf=folder where driver files are stored
disk directory=directory on original floppy
disk description=from txtsetup.oem of driver
disk tag=file on disk from txtsetup.oem

See Q196667 for info on sysprep.inf driver format
Intel IDE drivers don't come as a separate download but come with the INF
install. To use them in sysprep, you need the PnPID from the registry of a
system that is running the same chipset. Start the registry editor and go
to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\
Expand each key and look for the key with a DeviceDesc of something like :
"Intel(R) 82801DB Ultra ATA Storage Controller - 24CB"
Grab the CompatibleID without the REV :
"PCI\VEN_8086&DEV_24CB"
Do a global search on your c:\winnt\inf for this ID and you should find the
appropriate installer INF file. Use this file's info in the sysprep.inf
file.

Create a cmdlines.txt file in c:\winnt\sysprep\$oem$ and put in the
following :

[Commands]
"c:\winnt\sysprep\sysprep -clean"

to remove the old drivers. See Q238955.
In sysprep.inf, create an InstallFilesPath under [unattended] like so :
InstallFilesPath="c:\winnt\sysprep\"

Run "c:\winnt\tools\sysprep\sysprep -pnp -nosidgen" to update PnP drivers
for system on install and keep the same SID
Turn off PC and migrate to new hardware.
Mini setup will run on reboot.
If there are problems in mini-setup, press <Shift> and <F10> in setup to
get a command prompt
When finished, you must rename the computer back to its old name if you
didn't specify it in the sysprep.inf file.

An example sysprep.inf file is here.


Return to the HAL Systems Help Page
This page last modified on July 28, 2005 by Gary Thorne