Sysprep a Windows Server 2003 SP2 VPC

 
PHP Freelancer

Overview

Sysprep is a tool to prepare a system for system cloning. One of the common use is to clone a base VPC for testing/development. The benefit of sysprep is that it make every newly cloned VPC to have unique SID and/or computer name, so that SID conflict will not happen after the cloning process.

After a system is sysprepped and restart, it will prompt users for many configuration settings (e.g. product key, locale, computer name, administrator password etc.). Indeed these settings can be preset and stored in an answer file, to minimize user input)

Reference

1. System Preparation tool for Windows Server 2003 Service Pack 2 Deployment

2. Force Sysprep to Prompt for a Computer Name During Mini-Setup in Windows XP

3. How to Build a Sysprep Answer File for Imaging

Steps

Configure the base system

In this post I am using Windows Server 2003 R2 Enterprise Version with SP2. Finish all configuration and install all softwares you want before sysprepping the base system, once sysprepped the system is “seal”.

However, sysprep is not compatible with some Softwares / Server Roles, so you should verified them before sysprepping.

Install System Preparation tool

For Windows Server 2k3 SP2, please download the “System Preparation tool” from reference 1

After installing the preparation tool, extract files in C:\WINDOWS\system32\deploy.cab to C:\sysprep. There are two utilities that we will be using:

  1. setupmgr.exe – Setup Manager
  2. sysprep.exe – Sysprep main program

Make sysprep answer file (sysprep.inf)

You can use the “Setup Manager” to create the answer file. To do this:

  1. Run “setupmgr.exe” and click “Next >” in “Setup Manager”
  2. Select “Create new” and click “Next”
  3. Select “Sysprep setup” and click “Next”
  4. Select the corrrect Windows product (mine is “Windows Server 2003, Enterprise Edition”) and click “Next”
  5. At this step, I select “No” as I would like to left some information for user to input.
    image
  6. Here you can enter the preset configuration values and proceed
    image
  7. The “Computer Name” part, if you want system setup configuration to prompt user for Computer Name, you will have to select “Automatically generate computer name” in this step, and modify the created answer file according. I will later show you how to modify the created answer file.
    image
  8. After you finish, setup manager will prompt you for the location to save the “sysprep.ini” file. Indeed the location of this file is not quite important as setup manager will also save the “sysprep.ini” file to C:\sysprep folder. This folder is for containing settings for sysprep and will be deleted after the system is sysprepped and reboot.
    Please note that if you provide Product Key in the “sysprep.ini”, the key will be stored in plain text, so beware of any “sysprep.ini” file outside C:\sysprep folder, as they will not be deleted after reboot.

Sysprep the system

Run “sysprep.exe” to sysprep the system, click “OK” for the notification.

image 

This default settings is what we need, so click “Reseal” and sysprep will start working and shutdown the system.

That’s it!

 

Discussion

What do you think? Leave a comment. Alternatively, write a post on your own weblog; this blog accepts trackbacks [trackback url].

Comments
1.
On May 23rd, 2010 at 7:11 pm, Roderick Urbach said:
I am very happy for the great wordpress blog. I would like to thank your Website. I might set a link from my blog. diet expert
2.
On June 18th, 2010 at 3:52 pm, Monica S. said:
Hi, I’m very interested in Linux but Im a Super Newbie and I’m having trouble deciding on the right distribution for me (Havent you heard this a million times?) anyway here is my problem, I need a distribution that can switch between reading and writing in English and Japanese (Japanese Language Support) with out restarting the operating system.
3.
On February 2nd, 2011 at 6:53 am, Lashon Toh said:
I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road. Many thanks
4.
On March 1st, 2011 at 6:14 pm, online marketing suggestions said:
online marketing business internet marketing methods
5.
On March 1st, 2011 at 6:59 pm, teeth whitening prices said:
Awesome blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog shine. Please let me know where you got your design. With thanks
6.
On March 1st, 2011 at 7:10 pm, markowe perfumy said:
Excellent blog here! Also your website loads up fast! perfumy What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol
7.
On July 24th, 2011 at 3:37 am, Rema Netkowicz said:
Hey website owner, thank for sharing this valuable article! It helped me a lot!
8.
On September 12th, 2011 at 10:24 am, Cornelia Voiles said:
Hi! Would you mind if I share your blog with my zynga group? There’s a lot of people that I think would really enjoy your content. Please let me know. Cheers
Leave a Reply