Q. How can I use the Sysprep utility to create a "clean" PC to use for an image-based Windows deployment?

John Savill

August 3, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. After you've created a Windows installation that you want to image and distribute to other PCs, your first task is to create the Sysprep folder on the C drive. Copy the sysprep.exe and setupcl.exe files into this folder. You can find these files in support/tools/deploy.cab on the Windows installation medium.

In the same Sysprep folder, create an answer file called sysprep.inf--a text file that gives the OS setup program the responses it needs during the setup process. The easiest way to create sysprep.inf is to use Setup Manager (setupmgr.exe), which is also in the deployment tools on the Windows installation media. Your sysprep.inf file will look similar to the following example:

;SetupMgrTag[Unattended]OemSkipEula=YesInstallFilesPath=C:sysprepi386[GuiUnattended]AdminPassword="Pa55word"EncryptedAdminPassword=NOOEMSkipRegional=1TimeZone=20OemSkipWelcome=1[UserData]ProductKey=HAHAY-OUWIS-HIDPU-TAKEY-HERE!FullName="Demo"OrgName="Demo Company"ComputerName=*[SetupMgr]DistFolder=C:sysprepi386DistShare=windiest[Identification]JoinDomain=DOMAIN.LOCAL[Networking]InstallDefaultComponents=Yes

Your next task is to ready the PC for imaging. To do so, open a command prompt in the C:sysprep folder and type the command

sysprep -reseal -mini -shutdown

The -reseal switch deletes the machine-specific information from the PC. The -mini switch sets the PC so it starts a mini-wizard the next time it boots. The -shutdown switch tells the PC to shut down after the Sysprep command has completed. After the PC shuts down, it's ready to be imaged.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like