back to the top
- Install Windows 2000 on a sample computer. You can install Windows either interactively, or you can use an answer file to automate the process.
- Restart the computer, and then log on as Administrator.
- Install and customize all programs that you want to deploy with Windows 2000.
- Add local user accounts, join a domain, or do both.
- Review the configuration to verify that the computer contains all the required components, settings and data.
- Click Start, click Run, type cmd in the Open box, and then press ENTER.
- At the command prompt, type cd \, press ENTER, type md sysprep, and then press ENTER again.
- Insert the Windows 2000 Professional CD-ROM into the CD or DVD drive, type expand CD drive letter:\system\tools\deploy.cab –f:* c:\sysprep, and then press ENTER. Note that this command assumes that you created the Sysprep folder on drive C in step 7. If you put the folder on another drive, change the command.
- At the command prompt, type cd \sysprep, and then press ENTER.
- To run Sysprep.exe, type Sysprep /parameters, and then press ENTER. For a list of parameters, see the "Sysprep.exe Parameters" section of this article.
- Shut down the computer, remove the hard disk from the computer, and then clone it by using a third party disk-imaging process. Note that you shut down the computer automatically when you run Sysprep.exe by using the –reboot switch.
- Setupcl.exe starts, and then generates a new SID.
- The Mini-Setup Wizard starts to customize the new computer. If you do not provide the Sysprep.inf answer file, the wizard is run interactively.
setupmgr.exe at the command prompt, and then press ENTER. Follow the on-screen instructions to complete the wizard. You can also use a text editor to either create a new answer file, or modify an existing one.
For a more information, view the Unattend.doc file in the Deploy.cab file in the Support\Tools folder on your Windows 2000 CD-ROM, or visit the following Microsoft Web site:
- The Sysprep.exe, Setupcl.exe and Sysprep.inf files must be located in the Sysprep folder. The Sysprep.inf file can reside on a floppy disk, but the file must still be named Sysprep.inf. When Mini-Setup starts, it looks at the floppy drive to see if a Sysprep.inf file is there. If the Sysprep.inf file is there, it copies it to the %windir%\System32 folder as $winnt$.inf. Any existing file of that name is overwritten.
- The Sysprep folder must reside in the root folder of the same volume where the Winnt folder is located.
- The file must be named Sysprep.inf. If the file is not named Sysprep.inf or is located elsewhere, Mini-Setup ignores it and runs in interactive mode. Note that if a required section of the answer file is missing, Mini-Setup reverts to interactive mode to collect the missing information.
- /quiet - suppresses confirmation dialog messages that are typically displayed on the screen.
- /nosidgen - informs Setupcl.exe not to generate new SIDs on the restart, and then runs the Mini-Setup Wizard.
- /reboot - Automatically restarts the computer.
- /pnp - forces Mini-Setup to re-run the full PnP device enumeration the next time the computer is started. This mode increases the time that is required for mini-Setup and enables the use of the OemPnPDriversPath key in the Sysprep.inf file.
- Adds the CloneTag value to the HKEY_LOCAL_MACHINE\SYSTEM\Setup key that states the time and date that Sysprep.exe ran.
- Adds the CmdLine value to the HKEY_LOCAL_MACHINE\SYSTEM\Setup key. This "setup-newsetup-mini" value starts Mini-Setup when the computer restarts, and then changes the SystemSetupInProgress value to 0x1.
- Makes sure that the Setupcl.exe file is in the %systemroot%\System32 folder. If the file is not present, it looks for the file in the local folder, and then copies it to the %systemroot%\System32 folder. If the file is not found, Sysprep.exe displays an error message, and then quits.
- Places a command in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager - SetupExecute:REG_MULIT_SZ: Setupcl.exe
- The [SysprepMassStorage] section of the Sysprep.inf file is processed to establish what drivers must be enabled in the system registry.
- Sysprep.inf is copied to the WINNT\System32\$winnt$.inf file so the file can be located if other components need any information from the Sysprep.inf file. For example, if you want to promote the computer to a domain controller, you can include the [DCInstall] section.
The Sysprep folder may also contain the Provider.inf file. This file is used by third-party component providers to make sure that their components can be cloned by using Sysprep.exe.
back to the top
- InstallFilesPath - This is a pointer to the installation sources for additional drivers that are not supplied on the Windows 2000 CD-ROM. This is useful if Regional Settings parameters are being specified.
- KeepPageFile - Instructs Sysprep.exe to either keep the current pagefile or regenerate a new one.
- OEMDuplicatorString - This is an answer-file parameter whose value is a string that contains a description of the duplication tool that is used and any other information an OEM or administrator wants to store in the registry. The value can have a maximum of 255 characters and is stored in HKEY_LOCAL_MACHINE\SYSTEM\Setup\OemDuplicatorString
[LicenseFilePrintData] • All keys are supported
[Display] • All keys are supported
[RegionalSettings] • All keys are supported if the files are available on the computer hard disk. If regional settings are specified, you can refer to the location of the files by using the InstallFilesPath key in the [Unattended] section.
[Networking] • Only the installation of the default components are supported. The section only needs to exist in the Sysprep.inf file. Note that the installDefaultComponents values do not work, it always assumes "yes."
[Identification] • All keys are supported
[NetClients] • All keys for Client Services for Microsoft Networks and Client Services for NetWare are supported.
[TapiLocation] • All keys are supported. The values are valid only if the computer has a modem. For additional references, review the Microsoft Windows 2000 OEM Preinstallation Kit OPK users Guide.
back to the top
back to the top
Article ID: 298491 - Last Review: Dec 16, 2009 - Revision: 1