Manually Customizing Win2000 Answer File

  

When installing Windows 2000 unattended, the system uses an ASCII text file called Unanswered.txt (which is called Unattend.txt), which tells the installer how to install and Configure Windows 2000. When the user selects the unattended mode, the answer file must be specified on the Winnt.exe or Winnt32.exe command line. There are two ways to generate an answer file:

First, use the Windows 2000 Installation Manager Wizard to generate an answer file. When using this method, you can use WINZIP to extract the support oolsdeploy.cab file of the CD-ROM to a folder on the hard disk, and then double-click the setupmgr.exe file to start the Windows 2000 Installation Manager Wizard, which can generate an answer file. .

Second, it can be customized by the user according to the actual situation. This requires the user to understand the syntax of the answer file. In fact, as long as the user has studied the answer file a little, it is not difficult to customize the answer file that suits the user's needs. In order to manually customize the answer file, this article intends to briefly introduce the syntax of the Windows 2000 answer file, hoping to help friends.

First, the format of the answer file

An answer file consists of Section header, key and the value of each key. Most of the section headers are pre-defined. At the same time, some are defined by the user. If some parts of the installation process do not need to be installed, then the user does not have to specify the key and the corresponding value in the answer file. It should be noted that some invalid keyboard values ​​will generate errors after installation, and may even be incorrect. Processing. The format of the answer file is as follows:

[section_name]
key = value

In the specified segment, contains the key and its corresponding key value, each key and the corresponding value The space is separated by a space, an equal sign, and a space; when the value contains a space, it must be enclosed in double quotes, such as:

key = "value with spaces"

In some segments, there can be no keys, but only a list of values, such as:

[OEMBootFiles]
Txtsetup.oem

In the paragraph, the comment line requires a semicolon ";" As the opening mark, such as:

;This is a example of a comment line

In the answer file, each key must be assigned a value, however, some keys are optional. If some keys are omitted, these omitted keys will use their default values. Each key can be a string or a decimal value. At the same time, the key name does not distinguish between uppercase and lowercase letters.

Second, the default answer file

On the Windows 2000 CD, a default answer file is provided. The answer file is named Unattend.txt and its contents are as follows (the italic part must be The relevant data is given by the user):

[Unattended]; the key segment of the unattended mode
Unattendmode = FullUnattended; Do not provide any answers during Windows installation.
OemPreinstall = NO; no pre-installation required.
TargetPath = WINNT; On the target computer, install Windows to the WINNT folder.
Filesystem = LeaveAlone ; Activate File System
[UserData] Provides user data such as username, work unit, computer name, and product serial number.
FullName = "Your User Name"
OrgName = "Your Unit Name"
ComputerName = "Computer Name"
ProductID = "Product Serial Number"

[GuiUnattended] The data to be provided under the graphical interface
TimeZone = "210"; set the time zone for the target computer to Beijing Standard Time
AdminPassword = *; set the Administrator administrator password on the target computer, up to 127 characters. The "*" sign means no password.
AutoLogon = Yes; when the computer starts, it automatically logs in as an Administrator.
AutoLogonCount = 1; set the number of automatic logins to 1

[LicenseFilePrintData]; this section is the authorization mode
AutoMode = "PerServer"; select the per-server authorization mode
AutoUsers = "5" ; the number of simultaneous users connected to the server is 5

[GuiRunOnce]
This section lists: the program to be executed under the graphical user interface when the user logs in to the computer for the first time.

[Display] ; This section sets the resolution 800×600 and the vertical refresh rate 70 for the display.
BitsPerPel = 8; color (bits/pixels) = 8, ie 256 colors
XResolution = 800; screen area X resolution = 800
YResolution = 600; screen area Y resolution = 600< BR>VRefresh = 70; Vertical refresh rate=70Hz

[Networking] ; Define network settings. When InstallDefaultComponents value is YES, TCP/IP will be installed by default on the target computer, DHCP will be enabled, and Microsoft network will be installed. User agreement, etc.
InstallDefaultComponents = YES

[Identification] ; Flag Workgroup or Domain
JoinWorkgroup = "Workgroup" ; Join this machine to a workgroup named Workgroup, no spaces can be used in the group name. If you want to add this computer to the domain, you can rewrite it as:
JoinDomain=DOMAIN; join the domain domain
DomainAdmin=lgx; specify the domain administrator as lgx
DomainAdminPassword=321; specify the domain administrator password For 321

Copyright © Windows knowledge All Rights Reserved