Create Universal Ghost or WIM Image of Windows XP
I am going to explain process of creating hardware independent image of
windows XP.This means that if you restor the created image on any computer
by any kinds of hardwares,it should work.
May be it is not correct to say "hardware independent image",because as i
will say during tutor ,it is better to say each image that we make,may work
by some kinds of systems and will not work with others.
Any way do it by your own risk.
Step_01 : Note befor begining the job
Talking about hardware independed image,mostly began by windows vista.and
continued by windows 7.
Let's see what is hardware independed image ?
First thing that we should know is "HAL"(Hardware Abstraction Layer).In
simple define we can say "in Windows NT, 2000, and XP,HAL is a kind of driver
that provides interface between Operating System and hardware".
There are several kinds of HAL that windows can use,some of them are:
Advanced Configuration and Power Interface[ACPI] PC
ACPI Multiprocessor PC
ACPI Uniprocessor PC
MPS Multiprocessor PC
MPS Uniprocessor PC
If you want to know which kind of HAL is used by your PC,do as below:
1. Right-click the "My Computer" icon on desktop,and click "Properties".
2. Go to the "Hardware" tab,then Click "Device Manager".
4. Double-click "Computer" to view which HAL is loaded.
(see figure 01 from attachment for my system HAL).
Now let's talk a little more about different kinds of HAL:
Standard PC = Is Old Hal, Uses Hal.dll,and does not support a lot of newer systems.
you can use this kind for imaging just for computers that have the same HAL.
Advanced Configuration and Power Interface[ACPI] PC = Uses Halacpi.dll,and seems to
be more compatible by most of systems.
ACPI Multiprocessor PC = uses Halmacpi.dll,and can be can be used to deploy sysprep
image for computers that uses the HAL (Halmacpi.dll) and (Halaacpi.dll)
ACPI Uniprocessor PC =Uses Halaacpi.dll
MPS Multiprocessor PC =Uses Halmps.dll.and can be can be used to deploy sysprep
image for computers that uses the HAL of (Halapic.dll)and (Halmps.dll) types
MPS Uniprocessor PC =Uses Halapic.dll
Last Point: If you want to make your image as compatible with most systems,you should
use the "Advanced Configuration and Power Interface (ACPI) PC" HAL. This HAL will work
on most any modern computer, but it won't take advantage of multiple processors or
even hyperthreading. It also won't work at all on older Xeon based computers.and i will
use this HAL in tutor.
Step_02 : Needs
sp2.cab (from I386 folder of your XPCD).
deploy.cab (from Your XPCD)
SysPrep Driver Scanner, from http://www.vernalex....32/spdrvscn.exe
I suppose that you have saved files above some where in your system.
Step_03 Installing system and applications
1. Install Windows XP sp2 (Clean Install and in drive C:).
_ If you do this work in virtual pc,after installation,install virtual pc's
_ During install process,do not use addministrator passwoord,and do not join
_ After installation,restart,then logon as Administrator (To do this during logon
hold Ctrl + Alt and press Del twice ,then Enter 'Administrator' as the username
and leave the password field blank).
2.Install Needed Drivers (Just manufacturer specific drivers for hardware that
Windows cannot detect ).
3.Extract files below from sp2.cab some where:
halacpi.dll (not halaacpi.dll)
Rename "halacpi.dll" to "hal.dll",then copy these three files to your system32
4.Install hotfixes (KB883667,KB887816,KB910678),then restart computer.
5.Delete some files that you do not need for example MSN Explorer and
unneeded screen savers and...
6.Make your favorite adjustments for example set wallpaper,adust monitor
resolution to 1024 x 768 and Disable hibernation,Setup Start Menu and Desktop
7.Install and configure necessary softwares.(Note that Do not run softwares that
require user registration for example MS Office).
Step_04 Getting ready for taking image
1.Create directoy sysprep in root of your C: drive (C:\sysprep).
2.Extract "deploy.cab" to "C:\sysprep" folder.
3.Copy spdrvscan.exe (SysPrep Driver Scanner) to "C:\sysprep" folder.
4.create directory "C:\drivers".
5.Copy All drivers Needed for all computers that you want to use the image
on them.Note that you need to use 3rd party to prepair needed driver files
(Normaly INF and DLL files).
The form of driver folder should be some thing like:
C:\Drivers\Audio\C-Media\9880\"Needed files for this model"
C:\Drivers\Audio\C-Media\8738\"Needed files for this model"
C:\Drivers\MassStorage\Marvell\"Needed files for this model"
6.Now you should create sysprep.inf file.for this job run C:\sysprep\setupmgr.exe
go through wizard process,during wizard select "Sysprep setup" ,"Fully automate".
at the end sysprep.inf file will be made at C:\sysprep\ directory.open that by
notepad,check it,make any changes you prefer,and also add sections below to it:
We can add some other entries and add some other commands to sysprep.inf ,but
because of keeping tutor as simple as posible,i do not talk about them.
_make sure "inf" is selected in Extention section
_In "Search Path" section type: "C:\Drivers"
_Click "Scan" button.after a while it will show drivers pathes
_Click "Add" button and in coming window type: C:\Windows\inf and ok it.
_Click "Save" button. the program will add needed information to registry in:
_Click "Done" button,to exit the program.
8.Open command prompt and go to C:\sysprep
_Type: sysprep -bmsd
The command will write mass storage devices under "[SysprepMassStorage]"
section in "sysprep.inf" . this process may take from few seconds to even
one hour with respect to your system.(you will see a window during it works).
9.Clean any Temp folders and unneeded files and also Make sure to empty recycle bin.
10.It is beter to backup your system by ghost or other tools in this step.because
if we had a problem in next step,or we wanted to make some changes ,we can do that
by restoring this image.
Step_05 Finishing the job
1.Now system is ready to use SysPrep.
_Run sysprep.exe (from C:\sysprep),you will see a widow
_Enable "Use Mini-Setup"
_In "Shutdown mode" section select "Shut down"
_Click on "Reseal" button.The process of program will begin.if you have the
[SysprepMassStorage] section in sysprep.inf,the process will take a while.
and,when finished it will automatically shut down the computer.
2.Now use 3rd party for example ghost and get image of your drive.
This image can be restored to any computer that uses the same HAL,
and after boot you will have a mini setup process (few minutes) to finish.
After taking image you can turn on your computer to see mini setup process.
Note: SYSPREP will automatically delete c:\sysprep directory when it completes.
hope will be some help