Answer File = Unattend.txt
The [Unattended] section for Unattend.txt contains entries for running Setup. For the Sysprep.inf version, see [Unattended] (Sysprep.inf).
Required in Unattend.txt file. Otherwise, Setup ignores Unattend.txt.
Entry | Description |
---|---|
ActivateProxy | Specifies the proxy settings to use when connecting to the Internet to activate this installation of Windows XP, if you set AutoActivate to Yes. |
AutoActivate | Specifies whether Setup attempts to activate this installation of Windows XP automatically through an existing Internet connection. |
ComputerType | Specifies the type of custom hardware abstraction layer (HAL) that Setup Loader loads and installs by text-mode Setup. |
CrashDumpSetting | Specifies the creation and type of the dump file. |
DisableVirtualOemDevices | Specifies whether to load virtual original equipment manufacturer (OEM) devices during Setup. |
DUDisable | Specifies whether to connect to the Windows Update site to download updates during Setup. |
DUShare | Specifies the location for downloaded Dynamic Update .cab files. |
DUStopOnError | Specifies whether to stop the Windows Update process when an error is detected. |
DriverSigningPolicy | Specifies how to process unsigned drivers during unattended Setup. |
ExtendOemPartition | Specifies whether to extend the partition on which you install Windows. |
FactoryMode | Specifies whether |
FileSystem | Specifies whether to convert the primary partition to NTFS or to leave it alone. |
ForceHALDetection | Specifies whether |
Hibernation | Specifies whether to enable the hibernation option in the Power Options control panel. |
KeyboardLayout | Specifies the type of keyboard layout to install during text-mode Setup. |
NTUpgrade | Specifies whether Setup upgrades a previous version of Windows NT 3.51, Windows NT 4.0, Windows 2000, Windows XP, or the Windows Server 2003 family. |
OemFilesPath | Specifies the path to the \$OEM$ folder (containing OEM files) if it does not exist under the i386 folder of the distribution share point. |
OemPnPDriversPath | Specifies the path to one or more folders that contain Plug and Play drivers not distributed in Drivers.cab on the Windows product CD. |
OemPreinstall | Specifies whether Setup installs its files from distribution folders. |
OemSkipEula | Specifies whether the end user must accept the End-User License Agreement (EULA) included with Windows. |
OverwriteOemFilesOnUpgrade | Specifies whether to overwrite |
Repartition | Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system. |
TargetPath | Determines the installation folder in which you install Windows. |
UnattendMode | Defines the unattended mode to use during GUI-mode Setup. |
UnattendSwitch | Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD boot method. |
WaitForReboot | Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes. |
Win9xUpgrade | Specifies whether Setup upgrades previous installations of Windows 98, Windows 98 Second Edition, or Windows Millennium Edition to either Windows XP Home Edition or Windows XP Professional, as specified in the [Win9xUpg] section. |
This sample demonstrates one use of the [Unattended] section of Unattend.txt.
[Unattended] ActivateProxy = Proxy AutoActivate = Yes ComputerType = "OEM HAL", OEM CrashDumpSetting = 0 DisableVirtualOemDevices = Yes DUDisable = No DUShare = "%SYSTEMDRIVE% \DU_Cabs" DUStopOnError = Yes DriverSigningPolicy = Block ExtendOemPartition = 1000 FactoryMode = Yes FileSystem = ConvertNTFS ForceHALDetection = Yes Hibernation = Yes KeyboardLayout = Us NTUpgrade = Yes OemFilesPath = "%SYSTEMDRIVE% \OEM_Files" OemPnPDriversPath = MyFolder1;MyFolder2 OemPreinstall = Yes OemSkipEula = No OverwriteOemFilesOnUpgrade = Yes Repartition = Yes TargetPath = * UnattendMode = FullUnattended UnattendSwitch = Yes WaitForReboot = Yes Win9xUpgrade = Yes
Specifies the proxy settings to use when connecting to the Internet to activate this installation of Windows XP, if you set AutoActivate to Yes.
Syntax | ActivateProxy = section_name | Proxy |
---|---|
Values | section_name Proxy |
Example | ActivateProxy = Proxy |
Comments | If section_name is Proxy, Windows Product Activation (WPA) uses the proxy settings specified in the [Proxy] section. If section_name is anything else, WPA uses the proxy settings specified in [section_name] in the Unattend.txt file. The entries in [section_name] must match the syntax specified in the [Proxy] section.
Note
|
Specifies whether Setup attempts to activate this installation of Windows XP automatically through an existing Internet connection.
Syntax | AutoActivate = Yes | No |
---|---|
Values | Yes Attempts to activate this installation of Windows XP during unattended Setup through an existing Internet connection on the computer. NoRequires the end user to activate Windows XP either through an Internet connection or by telephone. |
Default Value | No |
Example | AutoActivate = Yes |
Comments | You must specify a valid Product Key in the ProductKey entry of the [UserData] section. If the Internet connection is through a firewall, you may need to specify the relevant proxy settings in the ActivateProxy entry.
Important
|
Specifies the type of custom hardware abstraction layer (HAL) that Setup Loader loads and installs by text-mode Setup.
Syntax | ComputerType = HAL_description [, Retail | OEM] |
---|---|
Values | HAL_description [, Retail | OEM] RetailInforms Setup that the HAL to install is part of Windows XP or Windows Server 2003 family. OEMIndicates that the HAL to load is |
Examples | ComputerType = "OEM HAL", OEM ComputerType = "Advanced Configuration and Power Interface (ACPI) PC", Retail |
Comments | This entry is valid only when the value of OemPreinstall is Yes. If the ComputerType entry is not present, Setup attempts to detect the type of computer and install the appropriate retail HAL.
The HAL_description string identifies the Hardware Abstraction Layer (HAL) to install. It must match one of the strings in the [Computer] section of TxtSetup.sif (for a retail HAL) or TxtSetup.oem (for an OEM HAL). |
Specifies the creation and type of the dump file.
Syntax | CrashDumpSetting = 0 | 1 | 2 | 3 |
---|---|
Values | 0 Does not create a dump file. 1Complete Memory Dump: Records the entire contents of system memory to Kernel Memory Dump: Records only kernel memory to Small Memory Dump (64K): Records the smallest set of useful information that can help identify the problem to |
Default Value | Windows XP Home Edition and Windows XP Professional: 3 Windows Server 2003 family: 1 |
Example | CrashDumpSetting = 0 |
Comments | When the system fails, you can create a dump file that contains information useful for debugging. Dump file types vary by size. The system checks for available space on the boot volume and writes the largest possible dump file. |
Specifies whether to load virtual OEM devices during Setup.
Syntax | DisableVirtualOemDevices = Yes | No |
---|---|
Values | Yes Disables loading virtual OEM devices during Setup. NoDoes not disable loading virtual OEM devices during Setup. |
Default Value | Yes for preinstallation; No otherwise |
Example | DisableVirtualOemDevices = Yes |
Comments | An example of a virtual OEM device is a RAM disk that has During attended Setup, you can disable loading of virtual OEM devices by pressing F4 at the prompt to press the F6 key. |
Specifies whether to connect to the Windows Update site to download updates during Setup.
Syntax | DUDisable = Yes | No |
---|---|
Values | Yes Instructs Setup not to connect to the Windows Update site. NoInstructs Setup to connect to the Windows Update site to download any available Windows XP Setup updates. Setup also downloads any necessary drivers that are not on the Windows XP |
Default Value | Yes |
Example | DUDisable = No |
Comments | Specifies whether Setup connects to the Windows Update site to download any available Windows Setup updates or necessary drivers that are not on the Windows CD-ROM.
DUDisable is equivalent to the command: winnt32 /unattend /dudisable Setup disables dynamic updates by default so corporate administrators can more easily standardize on a known set of Windows system components. |
Specifies the location for downloaded Dynamic Update .cab files.
Syntax | DUShare = path_to_downloaded_cabs |
---|---|
Values | path_to_downloaded_cabs Specifies the location for all downloaded Dynamic Update .cab files. |
Example | DUShare = " |
Requires | You must run winnt32 /DUPrepare:path_to_downloaded_cabs before using this entry. |
Comments | When a path is specified, the Dynamic Update wizard page is not shown and Setup does not try to connect to Windows Update. Instead, Setup uses the Dynamic Update .cab files from this share. |
Specifies whether to stop the Windows Update process when an error is detected.
Syntax | DUStopOnError = Yes | No |
---|---|
Values | Yes Stops the Windows Update process when an error is detected. NoDoes not stop the Windows Update process when an error is detected. |
Example | DUStopOnError = Yes |
Comments | Windows Update errors include any failure to process Windows Update files, or the inability to connect to Windows Update. By default, the Windows Update process stops when an error is detected. |
Specifies how to process unsigned drivers during unattended Setup.
Syntax | DriverSigningPolicy = Block | Warn | Ignore |
---|---|
Values | Block Setup does not install the unsigned device driver. WarnSetup stops the installation and prompts the end user for input before accepting the unsigned device driver. IgnoreSetup continues despite the unsigned driver. |
Default Value | Warn |
Example | DriverSigningPolicy = Block |
Comments | Signed drivers have gone through the Microsoft driver testing and signing process to ensure they are compatible with Windows XP and the Windows Server 2003 family.
Important
For more information, see:
For more information about driver ranking and how Setup chooses the correct driver, see the Microsoft Device Development Kit (http://www.microsoft.com/ddk/). |
Specifies whether to extend the partition on which you install Windows.
Syntax | ExtendOemPartition = 0 | 1 | extra_size_in_MB |
---|---|
Values | 0 Setup does not extend the partition. 1Setup extends the partition to fill out the hard disk. extra_size_in_MBSetup increases the current partition size by this amount. This is useful if you want to configure more than one partition on the hard disk. |
Example | ExtendOemPartition = 1000 |
Comments | This entry causes Setup to extend this destination partition into any available unpartitioned space that physically follows it on the disk.
ExtendOemPartition automatically leaves the last cylinder on the hard disk free to allow dynamic disk support. Important
If your manufacturing process requires FAT32, use the Oformat You can also convert the partition during text-mode Setup by setting the FileSystem entry in the [Unattended] section of Unattend.txt to ConvertNTFS. FileSystem is not a valid entry in Sysprep.inf. However, the hard drive performs better if you use Convert with Oformat and/or Cvtarea instead of the FileSystem entry. For more information, see the Legacy Methods section of NTFS Preinstallation and Windows XP. You can also use the ExtendPartition entry in the [ComputerSettings] section of Winbom.ini to extend the partition using the Factory tool. |
Specifies whether
Syntax | FactoryMode = Yes | No |
---|---|
Value | Yes |
Default Value | Yes |
Example | FactoryMode = Yes |
Comments | Use this entry when performing a clean install of the operating system as the first step in building a master installation, which you then plan to duplicate onto multiple destination computers. FactoryMode = Yes will start the computer into Factory mode, where system configuration can be done before imaging. You must place the OPK tools in the |
Specifies whether to convert the primary partition to NTFS or to leave it alone.
Does not change the primary partition file system.
Syntax | FileSystem = ConvertNTFS LeaveAlone |
---|---|
Values | ConvertNTFS Converts the primary partition to NTFS. LeaveAlone |
Example | FileSystem = ConvertNTFS |
Comments | This entry is provided for backward compatibility with the Windows 2000 unattended Setup.
For the Windows XP and Windows Server 2003 family of operating systems, if your manufacturing processes require that you format the hard disk as FAT32, use the Oformat tool to create a FAT32 volume with clusters aligned in an optimal way for later conversion to the NTFS file system. Then use the Convert You can also convert the partition during text-mode Setup by setting the FileSystem entry equal to ConvertNTFS. However, the hard drive performs better if you use Convert with Oformat and/or Cvtarea instead of using the FileSystem entry. For more information, see the Legacy Methods section of NTFS Preinstallation and Windows XP. Note
|
Specifies whether
Syntax | ForceHALDetection = Yes | No |
---|---|
Values | Yes Installs the most appropriate HAL for the new operating system. NoKeeps the HAL from the previous operating system. |
Default Value | No |
Example | ForceHALDetection = Yes |
Comments | Important
|
Specifies whether to enable the hibernation option in the Power Options control panel.
Syntax | Hibernation = Yes | No |
---|---|
Values | Yes Enables hibernation. NoDisables hibernation. |
Default Value | Yes |
Example | Hibernation = Yes |
Comments | Not supported on the Notes
|
Specifies the type of keyboard layout to install during text-mode Setup.
Syntax | KeyboardLayout = layout_description |
---|---|
Value | layout_description |
Example | KeyboardLayout = Us |
Comments | If this entry does not exist, Setup detects and installs a keyboard layout.
This entry must match one of the |
Specifies whether Setup upgrades a previous version of Windows NT 3.51, Windows NT 4.0, Windows 2000, Windows XP, or the Windows Server 2003 family.
Syntax | NTUpgrade = Yes | No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Values | Yes Upgrades a previous version of Windows. Only these additional Unattend.txt entries are processed: ProductKey, AutoActivate, DUDisable, DUShare, and DUStopOnError NoDoes not upgrade a previous version of Windows. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example | NTUpgrade = Yes |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comments | This entry is valid only for Winnt32.exe.
Note
Set This entry upgrades your previous version of Windows XP, Windows Server 2003 family, Windows 2000, Windows NT 4.0, or Windows NT 3.51. Setup takes all user settings from the previous installation, and does not require The following table provides a comprehensive list of valid upgrade scenarios.
* You can upgrade from Windows NT 4.0 Terminal Server Edition or Windows 2000 Application Server mode to Windows Server 2003 family, but Setup will warn you that it does not support Terminal Service Application mode. |
Specifies the path to the \$OEM$ folder (containing OEM files) if it does not exist under the i386 folder of the distribution share point.
Syntax | OemFilesPath =path_to_$OEM$_folder |
---|---|
Value | path_to_$OEM$_folder |
Example | OemFilesPath = " |
Comments | The path can be a UNC name. Enclose path_to_$OEM$_folder in quotation marks if it is a long file name.
For more information about the \$OEM$ folder, if you are a computer manufacturer, see the Microsoft Windows XP OEM Preinstallation Kit (OPK) User Guide. Otherwise, see the Microsoft Windows 2000 Server Deployment Guide. |
Specifies the path to one or more folders that contain Plug and Play drivers not distributed in Drivers.cab on the Windows product CD.
Syntax | OemPnPDriversPath = folder_1_on_system_drive[;folder_2_on_system_drive]... |
---|---|
Values | folder_1_on_system_drive[;folder_2_on_system_drive]... |
Example | OemPnPDriversPath = MyFolder1;MyFolder2 |
Dependency | OEMPreinstall = Yes |
Registry subkey | HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\DevicePath |
Comments | The folders must contain all the files necessary to install the particular devices: catalog files, .inf files, and drivers.
For example, if you have a folder called \Drivers with subfolders called \Audio and \Net, specify
Important
When using OemPnPDriversPath in Unattend.txt, be sure that the folders are available during GUI-mode Setup or the end user first-run experience. The easiest way to do this is to place the Plug and Play drivers in the \$OEM$\$1 folder. To prevent end users from inadvertently deleting driver folders located at the root of the drive, you can place drivers under the \$OEM$\$$ folder (for example: $OEM$\$$\PnP\Audio). If the drivers are not in the Drivers.cab file on the computer's hard disk or in the location specified by OemPnPDriversPath, Setup prompts the end user for the location of the drivers during the first boot of the machine, before Windows Welcome or Mini-Setup. You can also use the [PnPDrivers] section in Winbom.ini to update drivers on a |
Specifies whether Setup installs its files from distribution folders.
Syntax | OemPreinstall = Yes | No |
---|---|
Values | Yes Setup copies the subfolders and files contained in the \platform\$oem$ folder. NoSetup does not copy these files. |
Example | OemPreinstall = Yes |
Comments | Note
|
Specifies whether the end user must accept the End-User License Agreement (EULA) included with Windows.
Syntax | OemSkipEula = Yes | No |
---|---|
Values | Yes Implies that the person performing the installation has read and agreed to the contents of the license agreement included with the product. It also implies that the end user on whose behalf you install Windows has agreed to the license agreement. NoImplies that the person performing the installation and the end user have not read and agreed to the license agreement. |
Example | OemSkipEula = No |
Comments | Important
|
Specifies whether to overwrite
Syntax | OverwriteOemFilesOnUpgrade = |
---|---|
Values | Yes Overwrites the files if found. NoDoes not overwrite the files if found. |
Default Value | Yes |
Example | OverwriteOemFilesOnUpgrade = Yes |
Comments | This entry is provided for backward compatibility with Windows 2000 unattended Setup. |
Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system.
Syntax | Repartition = Yes | No |
---|---|
Values | Yes Deletes all partitions on the first drive and reformats the drive with NTFS. NoDoes not delete partitions or reformat the drive. |
Example | Repartition = Yes |
Comments | Important
|
Determines the installation folder in which you install Windows.
Syntax | TargetPath = * | target_path |
---|---|
Values | * Setup generates a unique folder name for the installation. target_pathSetup installs to the specified folder. |
Example | TargetPath = * |
Comments | * indicates that Setup generates a unique folder name for the installation. The folder name given is usually Windows, unless that folder already exists. In that case, Setup installs into Windows.x (where x is 0, 1, ... 999) if these folders do not already exist.
The path must use 8.3 file names. be Do not include the drive letter in target_path. If you want to specify the target drive, you must use the /tempdrive |
Defines the unattended mode to use during GUI-mode Setup.
Syntax | UnattendMode = DefaultHide | FullUnattended | GuiAttended | ProvideDefault | ReadOnly |
---|---|
Values | DefaultHide Specifies that answers in the answer file are defaults. Unlike Use Specifies a fully unattended GUI-mode Setup. If you do not specify a required Setup answer in the answer file, Setup generates an error. During an attended Setup, improperly signed hardware drivers generate a warning dialog box. If Use Specifies an attended Use Specifies default answers in the answer file. In this case, Setup displays these default answers to the end user, who can change them if they are not appropriate. Use Specifies Use |
Default Value | DefaultHide |
Example | UnattendMode = FullUnattended |
Comments | The default value is DefaultHide when you do not specify the entry. When you specify this entry, it fully automates text-mode Setup with or without the necessary answers. |
Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD boot method.
Syntax | UnattendSwitch = Yes | No |
---|---|
Values | Yes Instructs Setup to skip Windows Welcome. NoInstructs Setup not to skip Windows Welcome. |
Default Value | No |
Example | UnattendSwitch = Yes |
Comments | Use UnattendSwitch only when you perform an unattended Setup with Winnt.exe, Winnt.sif, and the CD boot method. This entry is not necessary if you use Winnt32.exe to run Setup.
Note
|
Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes.
Syntax | WaitForReboot = Yes | No |
---|---|
Values | Yes Delays the reboot for 15 seconds after Restarts immediately after |
Default Value | Yes |
Example | WaitForReboot = Yes |
Specifies whether Setup upgrades previous installations of Windows 98, Windows 98 Second Edition, or Windows Millennium Edition to either Windows XP Home Edition or Windows XP Professional, as specified in the [Win9xUpg] section.
Syntax | Win9xUpgrade = Yes | No |
---|---|
Values | Yes Instructs Setup to upgrade the Windows installation, if found. NoInstructs Setup not to upgrade the Windows installation, if found. |
Default Value | No |
Example | Win9xUpgrade = Yes |
Comments | This entry is necessary only when using an answer file to upgrade an existing Windows 98 or Windows Millennium Edition computer to Windows XP Home Edition or Windows XP Professional. This entry is valid only for Winnt32.exe.
For more information, see [Uninstall]. |