Creating Answer File for Sysprep

After running Sysprep utility on Master VPS all user- and computer-specific information will be deleted from the operating system. On the next VPS restart operating system will behave much like a fresh OS in the middle of setup process, i.e. it will run “specialize” and then “oobeSystem” (OOBE – out-of-the-box experience) passes. User will be asked to select computer locale and regional settings, specify computer name and set administrator password. But our goal is to hide this process from VPS customers and specify (“answer”) all these parameters on their behalf.

More information about how Windows Setup configuration passes work:
http://technet.microsoft.com/en-us/library/cc749307.aspx

To automate Windows Setup we provide Sysprep utility with an “answer file” to configure unattended Setup settings for various passes. Answer file represents an XML file with clear and well-documented structure. This file could be conveniently edited in Windows System Image Manager (WSIM) tool that is a part of Windows Automated Installation Kit (WAIK).

You can download WAIK from Microsoft Downloads or MSDN Subscription Downloads. We recommend downloading WAIK from MSDN as it perfectly works on 64-bit systems.

WAIK ISO from Microsoft Downloads is available at: http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&DisplayLang=en

WAIK could be installed on both Windows Vista and Windows Server 2008.

To unpack ISO file without burning it onto DVD you may use “7Zip” file archiver that is free and available for download here: http://www.7-zip.org/

In order to create an answer file you will also need a copy of install.wim file that is available in “Sources” folder of Windows Server 2008 installation DVD. In order to create a catalog from install.wim image file WSIM must have a write access to the folder where it is located, so copy this file from DVD to some folder on the hard drive (say, “c:\WSIM\Windows Server 2008 x64”).

When you start WSIM toll you will see its main window with several panes:

image

The first step is to create a catalog from image file. Select “Tools -> Create Catalog” from the top menu. Select install.wim file and select image to catalog. In our case it is the first option (Windows Server 2008 Standard edition):

image

All possible settings that could be included in the answer file are in the tree in “Windows Image” pane:

image

The full documentation for Windows Setup configuration settings could be found here: http://technet.microsoft.com/en-us/library/cc749204.aspx

All settings can be applied during various passes of the Windows Setup process. More information about Windows Setup configuration passes:
http://technet.microsoft.com/en-us/library/cc766245.aspx

Strictly speaking, WSIM tool is just a visual editor for editing XML files with tree-view representation. For instance, sample XML answer file that can be downloaded from here [link TBD]. Specifying settings for computer name, administrator password and three network adapters looks in WSIM as following:

image