Well, it was a nightmare trying to figure out how to use Win7 Sysprep. The documentation is poor and the interface for creating the automated answer file (in xml) is horrible. I would have prefered the old text document version of an answer file and can’t for the life of me understand why they used xml. But they did, and the bull-dog in me wouldn’t let go of the fight to figure it out, even though it was not possible to charge my client for the effort beyond the first few hours. So I’m putting what I figured out here. I hope to keep this as simple as possible, but it’s such a mess that simple is going to be unobtainable I fear.
The main value of using sysprep on a machine is that it can produce an install file with answers to basic questions and it can do more than just the basic install of Windows. A syspreped machine will allow not only additional software to be installed but also drivers and settings.
For instance, we might want to have various utilities (defrag, maybe ccleaner, etc) and Office 2010 installed at the same time. A sysprep setup can install automatically with the right answer file
This is a work in process, so if you’re viewing this statement know that it’s not done. I published it anyway just so I’d have easier access to it. I hope to have links and even a sample to copy, but it will take a few days to finish this article.
There are 11 steps to the creation of a custom unattended Windows7 install in it’s most basic form.
- Copy the Win7 CD files to a networked drive custom folder.
- Create or modify an answer file (unattend.xml or a variation of that name).
- Copy the answer file to root of the networked drive custom Win7 CD files folder (same location as setup.exe).
- Create a Win7PE boot disk ???with imagex added???.
- Create a base-install machine (load the programs and files you want replicated in future installs, do not join a domain).
- Make an image of your base install machine for safety reasons (probably to the same networked drive but in a different folder from the Win7 CD files) — make sure you have a boot disk for the image program.
- Sysprep the base-install machine (not using audit mode, but saving drivers).
- ??? Boot from a WinPE disk and ??? run imagex to create an image of the sysprep’ed base-install machine (imagex will create a install.wim file).
- Copy the sysprep-created install.wim file from the base-install machine to the /sources sub-folder of your custom Win7 files on the network (you’ll be replacing the /sources/install.wim file).
- Test the install by mapping to the networked drive, changing to the Win7 folder created in step 1 and running, on the base-install machine, <setup.exe /unattend:unattend.xml> without the <> and all one line.
- Log in, reboot with ???oob??? and give the computer a name.
Thereafter, booting with Win7PE CD and running steps 10 and 11 is all that’s necessary to do a clean install on any other machine. If it all fails, there’s always that image you created in step 6 — you did create the image didn’t you? If it didn’t work then there was a failure in either the answer file or the sysprep stage.
Now for the details:
Gather:
Install disk for Windows version to be installed (need install.wim from \source folder)
Sample …install.xml file for the Windows version?
Windows Automated Installation Kit (WAIK) DVD
Windows PE boot disk
Technician computer (for WAIK)
Model computer (to install programs)
Create Technician’s computer by installing WAIK
Copy “install.wim” to root folder on Technician’s computer
Open WAIK Management window
Right click in … window and direct to the install.wim file
Accept the creation of a catalogue of the install.wim file
Wait 10 minutes for completion
Open Walk-through file
Follow directions to create a new install.xml file
Note: there are two places for license keys. The first place
is for normal keys, the second place is for MAK keys. Don’t put
any in the first if you will be using a MAK key.
…..more about MAK key….
Alternatively, if you are just making a slightly different xml file, just copy the existing model and make changes directly with notepad. For instance, you might want to just change the product key or add/change default user/password.
Install on new machine:
Boot new computer with Win7PE
Map network drive where Win7 CD files folder exists
Clear and format the hard drive if you want
diskpart
select disk 0
clean
create partition primary
select partition 1
format fs=ntfs label=”system”
assign letter=C
active
exit
Change drive to mapped network location of Win7 CD files folder
Change directory to Win7 CD files folder
Run <setup.exe /unattend:unattend.xml> or use whatever unattend file you created.
Reboot
Login
Window appears — select OK to reboot to Out-of-box experience
Answer a few questions, give computer a name
If you are joining a Win2008 domain then open IE and type into address bar <connect> without the <> and follow those directions.
End